Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news.in2p3.fr!in2p3.fr!proxad.net!feeder1-2.proxad.net!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Issues Writing to File
Date: Sat, 07 Nov 2009 08:24:21 -0600
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <hd3vur$nnq$1@news.eternal-september.org>
References: <hd3sl1$esl$1@fred.mathworks.com> <hd3uer$cnn$1@news.eternal-september.org> <hd3v01$84l$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX19zY9mTO9UCrBCuurSPZMzZ2GD411rePAajYQfvHoCK32eFPPrCFqxo3Frz1ZfX9LEqhyARdNPJPmViVs7bnHyvtfUrKgSLvV2kkeEDAlUPQwRG7lLUYWX6Fpon9t0L0EA=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Sat, 7 Nov 2009 14:24:28 +0000 (UTC)
In-Reply-To: <hd3v01$84l$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX18KeI3RamUCypYLxc9/GRjvaDvqLawNjTA=
Cancel-Lock: sha1:oaM/3Ff4zQdBZOgrLxDX4kuEEjk=
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Xref: news.mathworks.com comp.soft-sys.matlab:583223


Ashley wrote:
...
> Yes thank you I did get the max stress read correctly although I used
> a different method. Although what you suggested worked I was
> worried that it would fail if the max stress was for some reason
> written on a different line. ...

No, that was the whole point of the 'Maximum' in the format string in 
textread()--that _requires_ that the string be matched followed by the 
value so that your certain that it isn't a differing one that will be read.

Otherwise, if there were a malformed file using '%s %f' would possibly 
allow you to transparently get a value that wasn't the maximum w/o 
knowing about it.

But, it's your data, suit yourself...

--