<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Advanced MATLAB: Timer objects</title>
	<atom:link href="http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/</link>
	<description>&#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author&#34;&#62;Brett&#60;/a&#62; &#38; &#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author&#34;&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<lastBuildDate>Fri, 17 Feb 2012 15:58:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Saeid</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14279</link>
		<dc:creator>Saeid</dc:creator>
		<pubDate>Thu, 20 Oct 2011 01:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14279</guid>
		<description>Thanks.
Saeid</description>
		<content:encoded><![CDATA[<p>Thanks.<br />
Saeid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14263</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 10 Oct 2011 15:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14263</guid>
		<description>@Saeid,

&quot;a&quot; is a handle to the timer (a way of referring to the timer)  It is not a way of knowing how long the timer has been running.  You will need to store the start time somewhere and see how much time has elapsed.

Doug</description>
		<content:encoded><![CDATA[<p>@Saeid,</p>
<p>&#8220;a&#8221; is a handle to the timer (a way of referring to the timer)  It is not a way of knowing how long the timer has been running.  You will need to store the start time somewhere and see how much time has elapsed.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saeid</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14260</link>
		<dc:creator>Saeid</dc:creator>
		<pubDate>Sat, 08 Oct 2011 03:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14260</guid>
		<description>Doug;

Are the random numbers generated using the timer, saved in variable &quot;a&quot;?
I need to stop the timer when the random number being generated gets beyond 0.9. This helps me figure out how the timer works.  I was wondering why the timer does not stop when random numbers go beyond 0.9?

Thanks.
Saeid

&lt;pre&gt;
clear all
a=timer
set(a,&#039;executionmode&#039;,&#039;fixedRate&#039;) 
set(a,&#039;timerfcn&#039;,&#039;disp(rand)&#039;)
start(a)

while (a&amp;lt0.9)
  disp(&#039;Hello World!&#039;)
 end
 stop(a)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Doug;</p>
<p>Are the random numbers generated using the timer, saved in variable &#8220;a&#8221;?<br />
I need to stop the timer when the random number being generated gets beyond 0.9. This helps me figure out how the timer works.  I was wondering why the timer does not stop when random numbers go beyond 0.9?</p>
<p>Thanks.<br />
Saeid</p>
<pre>
clear all
a=timer
set(a,'executionmode','fixedRate')
set(a,'timerfcn','disp(rand)')
start(a)

while (a&amp;lt0.9)
  disp('Hello World!')
 end
 stop(a)
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14253</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 04 Oct 2011 14:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14253</guid>
		<description>@Saeid

Sure, why not?

Doug</description>
		<content:encoded><![CDATA[<p>@Saeid</p>
<p>Sure, why not?</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saeid</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14251</link>
		<dc:creator>Saeid</dc:creator>
		<pubDate>Fri, 30 Sep 2011 18:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14251</guid>
		<description>Doug;

Great tutorial.

 I was wondering if the random numbers generated could be saved in a variable so I could stop the timer if the value of the variable gets in a certain range.

&lt;pre&gt;
if b&lt;0.05
% b used to save random number as 1x1 array
stop(a)
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Doug;</p>
<p>Great tutorial.</p>
<p> I was wondering if the random numbers generated could be saved in a variable so I could stop the timer if the value of the variable gets in a certain range.</p>
<pre>
if b&lt;0.05
% b used to save random number as 1x1 array
stop(a)
end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14178</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 29 Jun 2011 18:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14178</guid>
		<description>@Vicky,

As long as you put it in the TS object, MATLAB does not care if it came from a timer object originally.

Doug</description>
		<content:encoded><![CDATA[<p>@Vicky,</p>
<p>As long as you put it in the TS object, MATLAB does not care if it came from a timer object originally.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vicky Budhiraja</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14176</link>
		<dc:creator>Vicky Budhiraja</dc:creator>
		<pubDate>Wed, 29 Jun 2011 06:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-14176</guid>
		<description>Hello,

Can we create and use a timeseries analysis of matlab from timer object. I am calling a function (in timer) which gives me some data upon execution. I want this data to be analysed via Timeseries.

Thank You,
Vicky</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Can we create and use a timeseries analysis of matlab from timer object. I am calling a function (in timer) which gives me some data upon execution. I want this data to be analysed via Timeseries.</p>
<p>Thank You,<br />
Vicky</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-13962</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Thu, 16 Dec 2010 14:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-13962</guid>
		<description>If you want to break out of a &quot;while 1&quot; loop, I would put a if (getappdata(0,&#039;breakout&#039;)); break; end inside the loop and then have your timer set that appdata in the root as appropriate to break out.

Doug</description>
		<content:encoded><![CDATA[<p>If you want to break out of a &#8220;while 1&#8243; loop, I would put a if (getappdata(0,&#8217;breakout&#8217;)); break; end inside the loop and then have your timer set that appdata in the root as appropriate to break out.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: imgMan</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-13960</link>
		<dc:creator>imgMan</dc:creator>
		<pubDate>Tue, 14 Dec 2010 07:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-13960</guid>
		<description>Doug,

Great tutorial.  

I&#039;d like to interrupt an infinite loop with a timer.

Setting the ErrorFcn to &#039;break;&#039;, or &#039;error(&#039;&#039;Inf loop&#039;&#039;)&#039; doesn&#039;t do the trick.  The error function only returns after I manually break the loop (Ctrl-C).

I attribute this to Matlab&#039;s single-threadedness, and that it can&#039;t actually interrupt what I&#039;m doing.

You said in this tutorial that the timer runs &#039;in the background&#039;.  That doesn&#039;t seem to be the case.  It only runs after what you&#039;re doing has paused, or allowed something else to run.

Thoughts?</description>
		<content:encoded><![CDATA[<p>Doug,</p>
<p>Great tutorial.  </p>
<p>I&#8217;d like to interrupt an infinite loop with a timer.</p>
<p>Setting the ErrorFcn to &#8216;break;&#8217;, or &#8216;error(&#8221;Inf loop&#8221;)&#8217; doesn&#8217;t do the trick.  The error function only returns after I manually break the loop (Ctrl-C).</p>
<p>I attribute this to Matlab&#8217;s single-threadedness, and that it can&#8217;t actually interrupt what I&#8217;m doing.</p>
<p>You said in this tutorial that the timer runs &#8216;in the background&#8217;.  That doesn&#8217;t seem to be the case.  It only runs after what you&#8217;re doing has paused, or allowed something else to run.</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-13916</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Thu, 04 Nov 2010 15:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/05/advanced-matlab-timer-objects/#comment-13916</guid>
		<description>Mayur,

I am not sure how accurate of timing (down to ms?) you can really get in a non-real-time OS.

Doug</description>
		<content:encoded><![CDATA[<p>Mayur,</p>
<p>I am not sure how accurate of timing (down to ms?) you can really get in a non-real-time OS.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>

