ADD LATeX legends and labels in MATLAB figures
16 ビュー (過去 30 日間)
古いコメントを表示
I tried to add represent LateX sympol in Legen of figures.
legend({'Mean Energy Consumption', 'Mean of $u_{i}$ Value', ...
'Client Selection Frequency'}, ...
'location', 'northwest');
but the LateX is not working for Legend.
0 件のコメント
採用された回答
Riccardo Scorretti
2022 年 4 月 14 日
編集済み: Riccardo Scorretti
2022 年 4 月 14 日
Hi. You must add 'interpreter', 'latex':
figure
plot(rand(20, 3), 'o-');
legend({'Mean Energy Consumption', 'Mean of $u_{i}$ Value', ...
'Client Selection Frequency'}, ...
'location', 'northwest', ...
'interpreter', 'latex');
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
