Change the axis of surf plot

조회 수: 73 (최근 30일)
Aleena Thomas
Aleena Thomas 2020년 4월 22일
답변: Muthu 2020년 4월 22일
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.

답변 (1개)

Muthu
Muthu 2020년 4월 22일
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.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by