String LaTex must have valid interpreter syntax
5 次查看(过去 30 天)
显示 更早的评论
String must have valid interpreter syntax:
$ + \frac{4e-09+2.2e-08i}{s+5000} + \frac{4e-09-2.2e-08i}{s+5000} - \frac{8e-09}{s} + \frac{0.0002}{s}$
0 个评论
回答(1 个)
Walter Roberson
2016-7-23
Are you sure that you specifically set the Interpreter property to 'latex' ? The default interpreter is 'tex'
2 个评论
Walter Roberson
2016-7-24
Please show more of your code. For example,
h = text(2,2,'$ + \frac{4e-09+2.2e-08i}{s+5000} + \frac{4e-09-2.2e-08i}{s+5000} - \frac{8e-09}{s} + \frac{0.0002}{s}$', 'interpreter', 'latex')
worked fine for me.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!