Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: text object with multiple lines
Date: Mon, 23 Feb 2009 16:16:02 +0000 (UTC)
Organization: Pierburg GmbH
Lines: 19
Message-ID: <gnui42$d7k$1@fred.mathworks.com>
References: <gnu3bu$9dm$1@inn-newsserver.rz.tu-ilmenau.de>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1235405762 13556 172.30.248.38 (23 Feb 2009 16:16:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 23 Feb 2009 16:16:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872224
Xref: news.mathworks.com comp.soft-sys.matlab:520227


Sebastian Graeber <sebastian.graeber@stud.tu-ilmenau.de> wrote in message <gnu3bu$9dm$1@inn-newsserver.rz.tu-ilmenau.de>...
> Hello,
> 
> 
> I recently added text-objects to some plotted graph. Now I will have a
> multiple-line text-object, but have no idea how to get this worked out ...
> 
> This is my one-line example:
> 
> text(0,1,'Here is the text')
> 

Hi,

figure
text(0,0.8,['this is firstline' char(10) 'this is second line'])
text(0,0.4,{'this is firstline';'this is just another line'})

See also the "Multiline Text" section in the text doc page.