Plotting funtion scalar, or character error
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
A Poyser
am 3 Mai 2023
Bearbeitet: chicken vector
am 3 Mai 2023
I have a piece of code that labels a graph using the function below.
ylabel('$\Gamma_I, \; R_{IC}$ (MJ/m^3)','FontSize',32,'Interpreter','latex')
Yet it seems to give me a plotting error that reads
% String scalar or character vector must have valid interpreter syntax:
How do I crrectly use the latex interpereter?
Thanks in advance
Alex
0 Kommentare
Akzeptierte Antwort
chicken vector
am 3 Mai 2023
Bearbeitet: chicken vector
am 3 Mai 2023
figure;
ylabel('$\Gamma_I, \; R_{IC}$ (MJ/m$^3$)','FontSize',32,'Interpreter','latex')
Or you can also use \frac{}{}.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations 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!