Y軸のラベルの指数表示を数値で表示するにはどうすればよいですか?
75 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 18 Giu 2010
Modificato: MathWorks Support Team
il 17 Mag 2018
次のコマンドを実行すると、Y軸のラベルが1, 2, 3 e+4の形式で表示されますが、オリジナルデータ(10000, 20000, 30000)の形式で表示する方法を教えてください。
x = [1 2 3];
y = [10000 20000 30000];
plot(x,y)
Risposta accettata
MathWorks Support Team
il 17 Mag 2018
'YTickLabel'の再設定を行うことで、指数表示を実数表示へ変更できます。
x = [1 2 3];
y = [10000 20000 30000];
plot(x,y)
set(gca,'yticklabel',num2str(get(gca,'ytick')','%d'))
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Axis Labels in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!