Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: tic toc function
Date: Tue, 12 May 2009 11:15:06 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 25
Message-ID: <gublnq$stq$1@fred.mathworks.com>
References: <gubl8l$sp5$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1242126906 29626 172.30.248.37 (12 May 2009 11:15:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 12 May 2009 11:15:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1597503
Xref: news.mathworks.com comp.soft-sys.matlab:539204


Hi, 

If you read 

>> help toc or

>>doc toc

you will see that 

Telapsed=toc; 
saves the time in T as a double.

wayne

"ching l" <chinglnc@hotmail.com> wrote in message <gubl8l$sp5$1@fred.mathworks.com>...
> Hello there, 
> 
> Is it possible just to get the "time" for the toc in seconds (i.e. 23.105489) 
> instead of the whole statement of  "Elapsed time is 23.105489 seconds".
> 
> I need to have the value of the elapsed time in excel sheet, unfortunately, 
> excel sheet does not seem to read String/character.
> 
> Please advise.