Y軸のラベルの指数表​示を数値で表示するに​はどうすればよいです​か?

27 Ansichten (letzte 30 Tage)
MathWorks Support Team
MathWorks Support Team am 18 Jun. 2010
次のコマンドを実行すると、Y軸のラベルが1, 2, 3 e+4の形式で表示されますが、オリジナルデータ(10000, 20000, 30000)の形式で表示する方法を教えてください。
x = [1 2 3];
y = [10000 20000 30000];
plot(x,y)

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 17 Mai 2018
'YTickLabel'の再設定を行うことで、指数表示を実数表示へ変更できます。
x = [1 2 3];
y = [10000 20000 30000];
plot(x,y)
set(gca,'yticklabel',num2str(get(gca,'ytick')','%d'))

Weitere Antworten (0)

Kategorien

Mehr zu 書式設定と注釈 finden Sie in Help Center und File Exchange

Produkte


Version

R2007a

Community Treasure Hunt

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

Start Hunting!