Is it possible to produce a plot in MATLAB with the axes scaled based upon the natural logarithm?
13 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2009 年 8 月 5 日
I know it is possible to scale axes based upon a base 10 log scale using the SEIMLOGX and SEMILOGY functions, but there does not seem to be any way to scale axes based upon a natural logarithm scale.
採用された回答
MathWorks Support Team
2009 年 8 月 5 日
The ability to scale axes based upon a natural logarithm scale is not available in MATLAB.
To work around this issue, plot the natural logarithm of the data on a linearly-scaled figure.
For example, try the following commands:
x = linspace(0, 100);
y = exp(x + 1);
plot(x, log(y))
0 件のコメント
その他の回答 (1 件)
Voss
2024 年 3 月 21 日
x = linspace(0, 100);
y = exp(x + 1);
semilogy(x,y)
yl = ylim();
n = ceil(log(yl(1))):10:floor(log(yl(2)));
yticks(exp(n))
yticklabels("e^{"+n+"}")
set(gca(),'YMinorTick','off')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Labels and Styling についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!