How to change surf function axis values to not use array index?
显示 更早的评论
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 个评论
Jan
2017-11-6
If you post your surf() command, it would be easier to suggest the modifications.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!