Thread Subject:
how to use timer in loop

Subject: how to use timer in loop

From: sabari ganesh

Date: 24 May, 2011 12:43:19

Message: 1 of 3

Actually I want to call a particular event to occur continuously at frequent intervals of time (consider it as poission i.e at poisson intervals). But I dont know how to call a timer at particular time intervals continuously with different set of timer properties.

Subject: how to use timer in loop

From: ImageAnalyst

Date: 24 May, 2011 12:52:33

Message: 2 of 3

On May 24, 8:43 am, "sabari ganesh" <sabar...@gmail.com> wrote:
> Actually I want to call a particular event to occur continuously at frequent intervals of time (consider it as poission i.e at poisson intervals). But I dont know how to call a timer at particular time intervals continuously with different set of timer properties.
------------------------------------------------------------------------------------------------------------------------------------
Why not just generate a random number and pass it in to the pause()
command. Then you woudn't need a timer. Every time though the loop
(say, over 1000 events), you'd be pausing for a different time.

Subject: how to use timer in loop

From: Goftam YaN

Date: 13 May, 2012 01:20:52

Message: 3 of 3

"sabari ganesh" wrote in message <irg957$fb0$1@newscl01ah.mathworks.com>...
> Actually I want to call a particular event to occur continuously at frequent intervals of time (consider it as poission i.e at poisson intervals). But I dont know how to call a timer at particular time intervals continuously with different set of timer properties.

perhaps you can use poissrnd to generate a poisson distribution with the rate that you have in mind, that would specify when you want the run the event and with what properties.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us