Double Prime
27 ビュー (過去 30 日間)
古いコメントを表示
I am trying to type double prime for a x label and I cannot make it work. Instead of double prime I get two prime with extra distance.
xlabel('$G^{\prime\prime}$','Interpreter','latex')
I also used other potential symbols like \second and \dprime but did not work. Direct type of it (˝) or $$G''$$ did not work either. I am using a mac and latexit or other tex software produced what I meant correctly!
Furthermore, commands like xlabel('G'' ') also end up to the wrong thing and omit one of the primes!
2 件のコメント
Walter Roberson
2011 年 6 月 10 日
Wait -- Mac? Which OS-X version? and which MATLAB version?
Somewhere around R2010 there were (if I recall) problems with using LaTex on OS-X .
Walter Roberson
2011 年 6 月 10 日
See http://www.mathworks.com/support/bugreports/249537
which just happened to get mentioned in a different Question this morning.
回答 (3 件)
Matt Tearle
2011 年 6 月 10 日
If it's just a matter of spacing, you could always remove some space between the primes:
xlabel('$G^{\prime\!\prime}$','Interpreter','latex')
Ivan van der Kroon
2011 年 6 月 10 日
xlabel('test''''')
gives you an xlabel as test'' You need double primes in strings for a single prime.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!