필터 지우기
필터 지우기

how to plot a figure with a title in Arabic?

조회 수: 3 (최근 30일)
mindo akami
mindo akami 2021년 9월 4일
댓글: Walter Roberson 2021년 9월 4일
Hi there,
How can I plot a figure with a title in arabic (in xlable, ylable and legend)
Thanks.

답변 (1개)

Chunru
Chunru 2021년 9월 4일
Matlab support unicodes:
plot(rand(6,1));
title("بﺖ"); % random arabic charactors
xlabel("بﺖ");
ylabel("بﺖ");
  댓글 수: 11
Chunru
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
Walter Roberson 2021년 9월 4일
It would probably end up having to be something like
xlabel(codes, 'fontname', 'Arabic Traditional')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by