2012-03-13 70 views
-2

How to display Chinese in plot's labelHow to display Chinese in plot's label

我是英文版64位win7系統,在matlab中的命令行和文件中可以輸入中文,但是保存再打開之後中文就變成「???」了。然後在plot裏面xlabel中也無法使用中文,畫出來的圖片上就是「???」。 請問怎麼才能在MatLab中使用中文?

回答

1

Have you Googled yourself? Try https://www.google.com/search?q=MATLAB%20%E4%B9%B1%E7%A0%81 . Basically you need to use an appropriate font, depending on which OS and MATLAB you use.

You can either directly use Chinese font (such as SimSun 宋體) or properly configure font linking in registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontLink\SystemLink). I wrote some articles about this in ThemeX forum . Pay a visit.

+0

All the solutions on the google is just for Chinese Win7(actually I managed to display Chinese on my friend's computer with a Chinese Win7). But note my win7 is english-version. All the solutions I can google do not work on my computer – RandyTek 2012-03-15 16:14:14

+0

Read my updates. – 2012-03-15 19:05:22