Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!2g2000prl.googlegroups.com!not-for-mail
From: Nathan <ngreco32@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Can we use escape in display?
Date: Tue, 14 Jul 2009 10:26:43 -0700 (PDT)
Organization: http://groups.google.com
Lines: 16
Message-ID: <582552a9-7a10-4b99-94b2-007718b92c46@2g2000prl.googlegroups.com>
References: <h3icin$5n5$1@fred.mathworks.com>
NNTP-Posting-Host: 198.206.219.34
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1247592403 24103 127.0.0.1 (14 Jul 2009 17:26:43 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 14 Jul 2009 17:26:43 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 2g2000prl.googlegroups.com; posting-host=198.206.219.34; 
	posting-account=_KeVcAoAAAB7j3xn35ujaQ0BoQhuzwJP
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) 
	Gecko/20090624 Firefox/3.5,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 wwwproxy-son-ca-02.ca.sandia.gov:80 (squid/2.5.STABLE14)
Xref: news.mathworks.com comp.soft-sys.matlab:555419


On Jul 14, 9:43 am, "Arthur Zheng" <hzhe...@gatech.edu> wrote:
> I want to display a string.
>
> using command:   display('somestring\n');
>
> and it shows on the screen that:
> somestring\n
>
> How could the newline escape '\n' be shown?

how about:
temp = sprintf('somestring\n');
display(temp);


-Nathan