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

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

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 5월 17일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 書式設定と注釈에 대해 자세히 알아보기

제품

릴리스

R2007a

Community Treasure Hunt

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

Start Hunting!