Log log plot
11 ビュー (過去 30 日間)
古いコメントを表示
I have a set of data wich I want to plot in a log scale, not with the base 10, but with the base 2. How can I do that?
0 件のコメント
採用された回答
Grzegorz Knor
2012 年 1 月 17 日
Try this code:
plot(log2(rand(100,1)*128))
ytick = get(gca, 'YTick')
str = cellstr( num2str(ytick(:),'2^{%d}') )
format_ticks(gca,' ',str)
format_ticks function you can download from:
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!