阿拉伯/波斯标签Matlab图形 [英] Arabic/Persian label Matlab figure
问题描述
Matlab无法显示图形的阿拉伯/波斯标签.另外,我看不到已安装的字体,也不想通过其他程序添加标签.我该如何解决这个问题?
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?
推荐答案
您正在寻找的是一种在轴标签中显示 unicode字符的方法.
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.
一件重要的事-在MATLAB中不要不要编辑包含unicode \ utf-8字符(例如阿拉伯语,波斯语,希伯来语,中文等)的.m
文件,因为它保存时弄乱了字符.使用外部编辑器(例如Notepad ++)来编辑和保存文件(不带BOM的UTF-8),并且只能在MATLAB中运行.
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.
这篇关于阿拉伯/波斯标签Matlab图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!