How to Plot Two Matrices in Excel?

Click For Summary
To plot two matrices of equal dimensions where each row corresponds to a coordinate pair, the initial method involves selecting the rows from both matrices and creating an x-y diagram. If this manual method does not yield the desired results, users can mark the second matrix's row, create a point diagram, and then edit the data source to include the x-coordinate. For users seeking automation, writing a macro using the recording function can streamline the process by capturing the necessary commands for repeated use.
member 428835
Hi PF!

I have two matrices of equal dimensions. I would like to plot them such that row ##i## of matrix 1 corresponds the x-axis and row ##i## of matrix 2 corresponds to the y axis, so that row ##i## of matrix 1 and matrix 2 together give a coordinate. Does anyone know how to do this quickly?

Thanks!
 
Physics news on Phys.org
Mark the row of matrix 1, then mark the row of matrix 2 (with ctrl to mark both at the same time), add an x-y-diagram. Done.

If that doesn't work for some reason: Mark the row of matrix 2, add a point (x/y) diagram, right-click on the data points to edit the data source, edit your line to add the x-coordinate reference. The details of the steps vary a bit between Excel versions.
 
Thanks for your response mfb! I tried following your steps, and this works for plotting row by row, but isn't there a way to automate the process?
 
You can write a macro. The recording function helps to get the right commands.
 
  • Like
Likes member 428835

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K