Shifting of 3D curve

3 次查看(过去 30 天)
AYUSH SINGHAL
AYUSH SINGHAL 2020-3-11
回答: BobH 2020-3-11
i plotted a 2D (75x75) matrix using surf command, now i want to change the range of axis from 0-15 with an interval of 0.2.
hoow can i do that??

采纳的回答

BobH
BobH 2020-3-11
You seem to be dividing the axis scale by 5. The same steps also apply to 'XTickLabel'
ylabel = get(gca, 'YTickLabel') % returns 5x2 char array
ylabel =
0
20
40
60
80
newylabel = num2str( str2num(ylabel) ./ 5 )
newylabel =
0
4
8
12
16
set(gca, 'YTickLabel', newylabel);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Formatting and Annotation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by