Problem with latex interpreter

Hi I want to assing this string to my ylable data but matlab cannot interpret it properly str=‘$\frac{\tilde{y}(t)}{\sigma_{\eta(t)}}$’ ylable(str,’Interpreter’,’latex’)
Does anyone know what’s the problem? Thanks

回答(1 个)

str='$\frac{\tilde{y}(t)}{\sigma_{\eta(t)}}$';
ylabel(str,'Interpreter','latex')

2 个评论

I’m using exactly the same syntax as you just mentioned, but unfortunately it is still the same
No, you didn’t. Copy paste what you’re trying.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by