[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with greek caracters while ploting

From: Mehdi Daakir
Subject: Re: problem with greek caracters while ploting
Date: Wed, 8 Apr 2015 16:31:34 +0200

Thank you for your answer.
I tried as you said, but still have the same problem ...

2015-04-08 16:24 GMT+02:00 Mike Miller <address@hidden>:
On Wed, Apr 8, 2015 at 14:32:27 +0200, Mehdi Daakir wrote:
> I'm facing a little problem using octave.
> I'm ploting some figure where I would like to print the greek caracter
> sigma.
> So my title look like : str=sprintf('\sigma = %.3f',value);title(str);
> The problem is I'm getting sigma when I'm printing my figure.
> Octave complains and the warning says :
> "
> warning: unrecognized escape sequence '\s' -- converting to 's'
> "

The printf family of functions interpret backslash as an escape
character. Valid escape sequences include '\n', '\t', etc.

To insert a literal backslash, escape it with another backslash:

  str=sprintf('\\sigma = %.3f',value);



Doctorant, Ingénieur en Géomatique
Spécialité : Photogrammétrie & Géodésie

reply via email to

[Prev in Thread] Current Thread [Next in Thread]