Arabic/Persian label Matlab figure

亡梦爱人 提交于 2019-12-11 11:39:51

问题


Matlab cannot display Arabic/Persian labels of the figure. Also I cannot see my installed fonts and I don't want to add the labels by another program. How can I fix this problem?


回答1:


What you're looking for is a way to display unicode characters in axes labels.

It seems that this problem was encountered before, but there's no simple solution for it. See workarounds here and here.

One important thing though - do not edit .m files containing unicode\utf-8 characters (such as Arabic, Farsi, Hebrew, Chinese, etc...) in MATLAB, because it messes up the characters upon saving. Use an external editor (like Notepad++) to edit and save the files (as UTF-8 without BOM), and only run in MATLAB.



来源:https://stackoverflow.com/questions/22759100/arabic-persian-label-matlab-figure

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!