Clear Filters
Clear Filters

Change the axis of surf plot

31 views (last 30 days)
Aleena Thomas
Aleena Thomas on 22 Apr 2020
Answered: Muthu on 22 Apr 2020
Hi,
I Have a matrix of size 2000*20. Using this i plotted a surf plot. I would like to change the axis 2000 from 0-2000 to 0-10 value with spacing of 0.005. Will i be able to do so.
Hope someone helps.

Answers (1)

Muthu
Muthu on 22 Apr 2020
I assume that you are trying to modify y axis of the surface plot.
In that case:
>> ylim([0,10])
>> yticks(0:0.005:10)
In case if you try to modify x or z axis. use the same code replaing y with x or z
Hope this helps.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!