String LaTex must have valid interpreter syntax

6 ビュー (過去 30 日間)
Éder Peixoto Marques
Éder Peixoto Marques 2016 年 7 月 23 日
コメント済み: Walter Roberson 2016 年 7 月 24 日
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}$

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 7 月 23 日
Are you sure that you specifically set the Interpreter property to 'latex' ? The default interpreter is 'tex'
  2 件のコメント
Éder Peixoto Marques
Éder Peixoto Marques 2016 年 7 月 23 日
Yes.
options.Interpreter = 'Latex';
Walter Roberson
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 ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by