Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
reading hebrew font

Subject: reading hebrew font

From: Sharon Gilad

Date: 25 Aug, 2009 14:07:03

Message: 1 of 4

Hi,

I have two computers at work - one uses matlab 2007a and the other uses matlab 2008a.

When I use matlab 2007a, I am able to read into a variable a string of hebrew text. For example, if I type into the command line:
a = 'עכבר';
Then I get:
a =

עכבר

However, when I try to do the same thing in matlab 2008a, then for some reason I am unable to assign hebrew text to a variable. That is, if I type:
a = 'עכבר';
Then I get that a equals some jibberish characters that look like squares (not hebrew characters).

Does anyone know why this happens and how I can use hebrew string characters in matlab 2008a as well?

Thanks,
Sharon.

Subject: reading hebrew font

From: Matt

Date: 25 Aug, 2009 14:52:02

Message: 2 of 4

"Sharon Gilad" <sharon.gilad@weizmann.ac.il> wrote in message <h70r67$j61$1@fred.mathworks.com>...
> Hi,
>
> I have two computers at work - one uses matlab 2007a and the other uses matlab 2008a.
>
> When I use matlab 2007a, I am able to read into a variable a string of hebrew text. For example, if I type into the command line:
> a = 'עכבר';
> Then I get:
> a =
>
> עכבר
>
> However, when I try to do the same thing in matlab 2008a, then for some reason I am unable to assign hebrew text to a variable. That is, if I type:
> a = 'עכבר';
> Then I get that a equals some jibberish characters that look like squares (not hebrew characters).
>
> Does anyone know why this happens and how I can use hebrew string characters in matlab 2008a as well?
==================================


Are the two versions are being run on the same computer?

In any case, type the following in both versions and report the output

>>double('עכבר')

Subject: reading hebrew font

From: Yair Altman

Date: 10 Feb, 2010 01:05:04

Message: 3 of 4

"Sharon Gilad" <sharon.gilad@weizmann.ac.il> wrote in message <h70r67$j61$1@fred.mathworks.com>...
> Hi,
>
> I have two computers at work - one uses matlab 2007a and the other uses matlab 2008a.
>
> When I use matlab 2007a, I am able to read into a variable a string of hebrew text. For example, if I type into the command line:
> a = 'עכבר';
> Then I get:
> a =
>
> עכבר
>
> However, when I try to do the same thing in matlab 2008a, then for some reason I am unable to assign hebrew text to a variable. That is, if I type:
> a = 'עכבר';
> Then I get that a equals some jibberish characters that look like squares (not hebrew characters).
>
> Does anyone know why this happens and how I can use hebrew string characters in matlab 2008a as well?
>
> Thanks,
> Sharon.

Simply change your Matlab preferences to use the Courier New font instead of the default font.

Yair Altman
http://UndocumentedMatlab.com

Subject: reading hebrew font

From: Matt J

Date: 10 Feb, 2010 02:40:21

Message: 4 of 4

"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message <hkt0o0$6jb$1@fred.mathworks.com>...

> Simply change your Matlab preferences to use the Courier New font instead of the default font.
>


Nope. That didn't work for me:

>> a = 'עכבר';
>> a

a =



Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us