Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Text property, 'extent', not working properly
Date: Sun, 19 Jul 2009 12:12:01 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 17
Message-ID: <h3v2ih$6h1$1@fred.mathworks.com>
References: <h3slb9$nsa$1@fred.mathworks.com> <h3t9g9$fe2$1@fred.mathworks.com> <h3tt69$e99$1@fred.mathworks.com> <h3u041$lov$1@fred.mathworks.com>
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 1248005521 6689 172.30.248.38 (19 Jul 2009 12:12:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 19 Jul 2009 12:12:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:556589


"Ben " <breedlun@hotmail.com> wrote in message <h3u041$lov$1@fred.mathworks.com>...
> >  This is slightly better than before, since the interval is constant, ...
> 
> Actually, it's not much better than before.  In the latest attempt, the interval was a constant 23.9361 when it should have been 24.  In the first attempt, the interval was also a constant: I got 25.6, when it should have been 25.

well, you seem to misunderstand the difference between
- extent
- position
if you run the snippet and change the CS, you'll see that the LINE commands that is inserted show precisely what you are asking for (if you're really(!?) asking for the extent of the TEXT box)...
also, have another look at

     doc text;
% the look at the definition of EXTENT...
% in general, yet depending on the UNITs',
% the EXTENT is NOT equal to the POSITON

us