Y軸を対数スケールに​設定するにはどうした​らよいですか?

plot関数を使ってx-yプロットをしています。x軸は線形で、y軸のみを対数スケールに設定したいです。どうすればいいですか?loglog関数を使ったのですが、両方の軸がスケールされてしまいます。Y軸だけを変更したいです。

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 13 de Nov. de 2024

0 votos

最良の方法として、semilogy関数をお勧めできます。あるいは、軸のYScaleプロパティを設定することもできます:
set(gca, 'YScale', 'log')
Mathworksサポートチームからの更新 - 2023年9月 R2023b以降では、yscale関数を使用することもできます。

Más respuestas (0)

Categorías

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!