![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/617378/image.png)
下付き文字について
87 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
グラフの凡例で上付き文字はw^{2}とすると上付きにできるのですが,下付き文字をw_{2}で表示させようとしてもw_2と表示され下付きになりません.
何か解決策はございますでしょうか.
1 Kommentar
Megumi Fukuda
am 14 Mai 2021
Bearbeitet: Megumi Fukuda
am 14 Mai 2021
使用環境や再現に必要なコードを添えていただけると、解決方法のアドバイスが得やすくなると思います。
Windows10, MATLAB 2021aでは、下記コードで画像のようなグラフになりました。
x_2 = 1:20; y_2 = rand(1, 20);
plot(x_2, y_2); xlabel('data x_{2}'); ylabel('data y_{2}');
legend('y_{2}')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/617378/image.png)
Antworten (0)
Siehe auch
Kategorien
Mehr zu 2 次元および 3 次元プロット finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!