Greek character print in the command window, but not when I publish a script.

조회 수: 8 (최근 30일)
Using the code
fprintf('\x03b1 = %.5d\n',m);
fprintf('\x03b2 = %.5i',b);
I can print alpha and beta characters when I run a script in the command window, but when I try to publish the script as a pdf, both characters are printed as "#".
Is there a setting in "Publish" that can fix this?

채택된 답변

Robert Lilly
Robert Lilly 2023년 2월 28일
이동: Walter Roberson 2023년 2월 28일
Changing the publish settings back to "Factory Default" was the easiest solution. Then I just printed the solution as a pdf.

추가 답변 (1개)

David Hill
David Hill 2023년 2월 28일
display(char(945));
α
display(char(946));
β
  댓글 수: 1
Robert Lilly
Robert Lilly 2023년 2월 28일
For some reason nothing was working with my publish settings. I tried what you suggested as well as HEX character code, OCT character code, and \alpha and \beta, like the MATLAB documentation suggested. Reverting back to factory publish settings worked though.

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

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by