font problem ??
2 ビュー (過去 30 日間)
古いコメントを表示
in my script, I have:
h2=ylabel('k^2/(2 \pi)')
set(h1, 'FontSize', 14)
something I consider very standard. I usually create my plot sometimes locally (sitting in front of the terminal) and sometimes remotely (through ssh).
when I make the plot locally, the Pi shows correctly. However when I run matlab remotely on a terminal through ssh (although I am using the same installation of matlab), the Pi shows as p.
I wish matlab provided access to full latex capability natively, say through an environment variable that would allow me to use the version I want....
2 件のコメント
回答 (1 件)
Andrew Newell
2012 年 2 月 16 日
The default interpreter is actually TeX, and maybe that is causing your problem. Try this:
h2=ylabel('$k^2/(2 \pi)$')
set(h2, 'FontSize', 14,'Interpreter','latex')
Note that if you use the LaTeX interpreter, you need to surround your equations with dollar signs (as for an inline math expression).
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!