Plotting funtion scalar, or character error
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!