Label the scales-plot
1 回表示 (過去 30 日間)
古いコメントを表示
Hello!!! I want to plot a graph of a given function in MATLAB..
Is it possible to label the scales in powers of 2?
0 件のコメント
回答 (1 件)
the cyclist
2015 年 4 月 2 日
編集済み: the cyclist
2015 年 4 月 2 日
figure
plot(2.^(5*rand(1,100)),rand(1,100),'.');
set(gca,'XTick',2.^[0:5])
If you want the labels to be the powers, rather than the numbers themselves, then add the line
set(gca,'XTickLabel',0:5)
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!