Shifting of 3D curve
조회 수: 1 (최근 30일)
이전 댓글 표시
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??![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276567/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276567/image.jpeg)
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!