ADD LATeX legends and labels in MATLAB figures
84 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Brave A
am 14 Apr. 2022
Kommentiert: Brave A
am 14 Apr. 2022
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 Kommentare
Akzeptierte Antwort
Riccardo Scorretti
am 14 Apr. 2022
Bearbeitet: Riccardo Scorretti
am 14 Apr. 2022
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');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!