<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251139</link>
    <title>MATLAB Central Newsreader - tic toc function</title>
    <description>Feed for thread: tic toc function</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 12 May 2009 11:07:01 -0400</pubDate>
      <title>tic toc function</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251139#649138</link>
      <author>ching l</author>
      <description>Hello there, &lt;br&gt;
&lt;br&gt;
Is it possible just to get the &quot;time&quot; for the toc in seconds (i.e. 23.105489) &lt;br&gt;
instead of the whole statement of  &quot;Elapsed time is 23.105489 seconds&quot;.&lt;br&gt;
&lt;br&gt;
I need to have the value of the elapsed time in excel sheet, unfortunately, &lt;br&gt;
excel sheet does not seem to read String/character.&lt;br&gt;
&lt;br&gt;
Please advise.</description>
    </item>
    <item>
      <pubDate>Tue, 12 May 2009 11:15:06 -0400</pubDate>
      <title>Re: tic toc function</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251139#649141</link>
      <author>Wayne King</author>
      <description>Hi, &lt;br&gt;
&lt;br&gt;
If you read &lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; help toc or&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt;doc toc&lt;br&gt;
&lt;br&gt;
you will see that &lt;br&gt;
&lt;br&gt;
Telapsed=toc; &lt;br&gt;
saves the time in T as a double.&lt;br&gt;
&lt;br&gt;
wayne&lt;br&gt;
&lt;br&gt;
&quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message &amp;lt;gubl8l$sp5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello there, &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is it possible just to get the &quot;time&quot; for the toc in seconds (i.e. 23.105489) &lt;br&gt;
&amp;gt; instead of the whole statement of  &quot;Elapsed time is 23.105489 seconds&quot;.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I need to have the value of the elapsed time in excel sheet, unfortunately, &lt;br&gt;
&amp;gt; excel sheet does not seem to read String/character.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please advise.</description>
    </item>
    <item>
      <pubDate>Tue, 12 May 2009 11:19:01 -0400</pubDate>
      <title>Re: tic toc function</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251139#649143</link>
      <author>us</author>
      <description>&quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message &amp;lt;gubl8l$sp5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello there, &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is it possible just to get the &quot;time&quot; for the toc in seconds (i.e. 23.105489) &lt;br&gt;
&amp;gt; instead of the whole statement of  &quot;Elapsed time is 23.105489 seconds&quot;.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I need to have the value of the elapsed time in excel sheet, unfortunately, &lt;br&gt;
&amp;gt; excel sheet does not seem to read String/character.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please advise.&lt;br&gt;
&lt;br&gt;
one of the solutions&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tic;&lt;br&gt;
for  i=1:100000&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rand;&lt;br&gt;
end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t=toc;     % no display&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp(t);&lt;br&gt;
%    0.0088784&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Tue, 12 May 2009 11:19:46 -0400</pubDate>
      <title>Re: tic toc function</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251139#649144</link>
      <author>Nasser Abbasi</author>
      <description>&lt;br&gt;
&quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gubl8l$sp5$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hello there,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Is it possible just to get the &quot;time&quot; for the toc in seconds (i.e. &lt;br&gt;
&amp;gt; 23.105489)&lt;br&gt;
&amp;gt; instead of the whole statement of  &quot;Elapsed time is 23.105489 seconds&quot;.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I need to have the value of the elapsed time in excel sheet, &lt;br&gt;
&amp;gt; unfortunately,&lt;br&gt;
&amp;gt; excel sheet does not seem to read String/character.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Please advise.&lt;br&gt;
&lt;br&gt;
EDU&amp;gt;&amp;gt; clear all&lt;br&gt;
EDU&amp;gt;&amp;gt; tic&lt;br&gt;
EDU&amp;gt;&amp;gt; t=toc;&lt;br&gt;
EDU&amp;gt;&amp;gt; t&lt;br&gt;
&lt;br&gt;
t =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.8080&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--Nasser </description>
    </item>
  </channel>
</rss>

