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

8 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

Robert Lilly
Robert Lilly am 28 Feb. 2023
Verschoben: Walter Roberson am 28 Feb. 2023
Changing the publish settings back to "Factory Default" was the easiest solution. Then I just printed the solution as a pdf.

Weitere Antworten (1)

David Hill
David Hill am 28 Feb. 2023
display(char(945));
α
display(char(946));
β
  1 Kommentar
Robert Lilly
Robert Lilly am 28 Feb. 2023
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by