Unrecognized characters

On editor or command window the characters are OK, but not in the figure.
When I enter
figure
text(0.5,0.5,'testing characters a, á, ã, â')
I get "testing characters a, Ãi, ã, â" on my figure
How can I solve it?
Thank you RP

5 件のコメント

Sean de Wolski
Sean de Wolski 2012 年 2 月 22 日
Copying and pasting what you have works fine on my system - Windows R2011b.
Sven
Sven 2012 年 2 月 22 日
Me too - no problem with encoding on Win7, R2011b.
You say it looks fine on the command line... what happens when you run:
figure, t = text(0.5,0.5,'test a, á, ã, â')
get(t,'String')
?
R P
R P 2012 年 3 月 1 日
ans=
test a, á, ã, â
(and the characters in the figure are not recognized)
ps-I'm running Matlab in Linux
R P
R P 2012 年 3 月 1 日
Additionally, the 'Font Size' property of TEXT function is ignored...
R P
R P 2012 年 3 月 1 日
Other user with a similar problem (from http://www.mofeel.net/582-comp-soft-sys-matlab/159936.aspx) :
I have an erratic behavior on mac os x 10.6, and R2010a regarding options in fonts.
figure(1)
clf
colormap gray
imagesc(d)
title('Unfiltered image','FontWeight','bold')
xlabel('X (px)','fontweight','bold')
ylabel('Y (px)','fontweight','bold')
Whatever options I choose in title and labels, they are either ignored, or partially ignored. In this example, only the ylabel is plotted as bold.
Any idea what could be causing this ?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLabels and Annotations についてさらに検索

質問済み:

R P
2012 年 2 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by