- #1
davidnuke85
- 2
- 0
I have a m*n matrix of values called plot_1. The matrix contains a series of values intended to be plotted at specified (x,y) coordinates. I am trying to plot the matrix using the surf function.
My problem is that the plot comes up with the axes corresponding to the indexing location (row #, column #), and I do not know how to redefine the axes values to correspond to the correct (x,y) coordinates. I have the x-coordinates and y-coordinates in separate matrices ready to be input as the axes values, but I do not know how to tell Matlab to use these matrices rather than the indexing locations. Please let me know if anyone knows of a function to redefine the axes, or if there is a different plotting function that I should use that more easily incorporates user defined axes. Thank you.
My problem is that the plot comes up with the axes corresponding to the indexing location (row #, column #), and I do not know how to redefine the axes values to correspond to the correct (x,y) coordinates. I have the x-coordinates and y-coordinates in separate matrices ready to be input as the axes values, but I do not know how to tell Matlab to use these matrices rather than the indexing locations. Please let me know if anyone knows of a function to redefine the axes, or if there is a different plotting function that I should use that more easily incorporates user defined axes. Thank you.