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?
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')
בהצלחה!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With