Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!c36g2000yqn.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Can we use escape in display?
Date: Tue, 14 Jul 2009 12:44:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Message-ID: <bd56ee23-3dc4-429e-a4cf-b3b5bc701ae7@c36g2000yqn.googlegroups.com>
References: <h3icin$5n5$1@fred.mathworks.com> <h3iklg$nnr$1@fred.mathworks.com>
NNTP-Posting-Host: 77.16.36.147
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1247600665 7252 127.0.0.1 (14 Jul 2009 19:44:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 14 Jul 2009 19:44:25 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c36g2000yqn.googlegroups.com; posting-host=77.16.36.147; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
	Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:555460


On 14 Jul, 21:01, "Jeremy Smith" <smit1...@umn.NOSPAM.edu> wrote:
> Another alternative is to input the actual new line characters.
>
> >> disp(['Hello' char(13) 'World'])
>
> Hello
> World
>
> If you're building a string to write to file

... use FPRINTF.

Rune