How to change surf function axis values to not use array index?
Show older comments
I have generated a square array of results 601x601 in size, that is a function of x and y. x and y are in the range -30:0.1:30
I can plot the results easily using the surf function and make it display as I wish, however the axes both go from 0-600 corresponding to the array indices. I want to change the axes to represent the range of the x and y inputs (-30:30).
I am sure the answer is simple but I just could not work out how to do it, any help would be greatly appreciated.
1 Comment
Jan
on 6 Nov 2017
If you post your surf() command, it would be easier to suggest the modifications.
Accepted Answer
More Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!