MATLAB Answers

String scalar or character vector must have valid interpreter syntax.

390 views (last 30 days)
Ivan Ekerhovd
Ivan Ekerhovd on 6 Apr 2020
Commented: Ivan Ekerhovd on 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 Comments

Sign in to comment.

Answers (1)

Guillaume
Guillaume on 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!