MATLAB Answers

String scalar or character vector must have valid interpreter syntax.

조회 수: 350(최근 30일)
Ivan Ekerhovd
Ivan Ekerhovd 6 Apr 2020
댓글: Ivan Ekerhovd 6 Apr 2020
I want to add:
ylabel('$\midH(f)\mid$ (deg/m)', 'interpreter', 'latex')
error:
String scalar or character vector must have valid interpreter syntax.
let me know what to change to make it work,
Thanks!

  댓글 수: 0

댓글을 달려면 로그인하십시오.

답변(1개)

Guillaume
Guillaume 6 Apr 2020
The error tells you the latex is invalid. Indeed it is, it's missing some spaces around the \mid
ylabel('$\mid H(f) \mid$ (deg/m)', 'interpreter', 'latex')

Community Treasure Hunt

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

Start Hunting!

Translated by