user552231
user552231

Reputation: 1135

Displaying hebrew text on screen

I want to display hebrew text on the screen using the text command in MATLAB:

text(0.6, 0.5, 'ירוק', 'rotation', 180, 'fontsize', 50, 'color', 'r')

The problem is that it displays gibberish.

Does anybody know why? What should I do in order to display the text correctly?

Upvotes: 11

Views: 1773

Answers (1)

Yair Altman
Yair Altman

Reputation: 5722

You need to use a font that supports Hebrew characters - the default font (Helvetica) does not. You can use 'Courier', David' etc. For example:

text(0.6,0.5,'ירוק','fontname','david','rotation',180,'fontsize',50,'color','r')

בהצלחה!

Upvotes: 12

Related Questions