As per my understanding, you have two matrices, say A and B, of the same size. You would like to plot just one (X,Y) pair on a graph for each pair (A(i), B(i)), where i is the index of element in matrix.
From your question, I am not sure whether you would like to have just one figure with multiple subplots for each value pair or have multiple figures with plots for each value pair. Hence I am providing you with a solution for both these mentioned cases.
- One figure with multiple subplots, one subplot for each value pair
- Many figures, one figure for each value pair
I hope this helps resolve the issue you were facing.
Please refer to the following documentation to read more about 'plot()' and 'subplot()' functions: