octave-maintainers
[Top][All Lists]
Advanced

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

Re: backslash escapes in character strings


From: daniel . sebald
Subject: Re: backslash escapes in character strings
Date: Thu, 14 Apr 2005 19:51:28 -0000 (GMT)
User-agent: SquirrelMail/1.4.4

> On  2-Apr-2005, Andy Adler <address@hidden> wrote:
>
> | On Fri, 1 Apr 2005, John W. Eaton wrote:
> |
> | > I think we may have discussed this before, but I'm not sure what the
> | > outcome was.
> | >
> | > Currently, Octave converts things like
> | >
> | >   "foo\nbar"

Just a comment... I too find the Matlab syntax or rule extremely confusing
and, well, annoying.  It seems that routines that have an almost exact C
counter part (e.g., print) will allow a '\n'.  While general use of
strings doesn't.  I think I see what is going on.  Matlab has a latex-like
interpreter for entering math symbols.  So backslashes aren't escape
sequences (above would be interpretted as a command \nbar )...  I use
gnuplot for greek letters and such when creating journal quality plots.

Dan




reply via email to

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