How to scale the Tick Label by a number?
8 ビュー (過去 30 日間)
古いコメントを表示
Jose Zamora Zeledon
2016 年 6 月 11 日
回答済み: Azzi Abdelmalek
2016 年 6 月 11 日
I'm using images(imd,clims) to plot a figure. The figure is a 64x64 matrix, and the ticks currently go from 0 to 64 on both x and y. My question is how can I scale the ticks say by 0.05 (as in xyLabel = 0.05 .* (0:64) ) and change the value displayed.
Thank you!
0 件のコメント
採用された回答
Azzi Abdelmalek
2016 年 6 月 11 日
A=randi(64,64)
image(A)
xt=arrayfun(@num2str,get(gca,'xtick')*0.05,'un',0)
yt=arrayfun(@num2str,get(gca,'ytick')*0.05,'un',0)
set(gca,'xticklabel',xt,'yticklabel',yt)
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!