how to plot a figure with a title in Arabic?
3 次查看(过去 30 天)
显示 更早的评论
Hi there,
How can I plot a figure with a title in arabic (in xlable, ylable and legend)
Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/729214/image.png)
0 个评论
回答(1 个)
Chunru
2021-9-4
Matlab support unicodes:
plot(rand(6,1));
title("بﺖ"); % random arabic charactors
xlabel("بﺖ");
ylabel("بﺖ");
11 个评论
Chunru
2021-9-4
listfonts() does not give the Arabic fonts. I also chech Fonts under Windows. It looks like the Arabic font is not installed in my machine. That may explain why it does not work on my machine.
Walter Roberson
2021-9-4
It would probably end up having to be something like
xlabel(codes, 'fontname', 'Arabic Traditional')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!