Plotting funtion scalar, or character error

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

 채택된 답변

chicken vector
chicken vector 2023년 5월 3일
편집: chicken vector 2023년 5월 3일
figure;
ylabel('$\Gamma_I, \; R_{IC}$ (MJ/m$^3$)','FontSize',32,'Interpreter','latex')
Or you can also use \frac{}{}.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

2023년 5월 3일

편집:

2023년 5월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by