Plotting funtion scalar, or character error

4 vues (au cours des 30 derniers jours)
A Poyser
A Poyser le 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

Réponse acceptée

chicken vector
chicken vector le 3 Mai 2023
Modifié(e) : chicken vector le 3 Mai 2023
figure;
ylabel('$\Gamma_I, \; R_{IC}$ (MJ/m$^3$)','FontSize',32,'Interpreter','latex')
Or you can also use \frac{}{}.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by