Matlab - Trouble using multiple timers -


hi writing program on matlab uses multiple timers. each timer calls different function.

i have

t = timer('period', 0.1,...                      'startdelay',1,...         'executionmode', 'fixedrate',...         'timerfcn',@moverobots)...  t1 = timer('period', 0.1,...         'startdelay',1,...         'executionmode', 'fixedrate',...         'timerfcn',@moveintruder)...  t2 = timer('period', 0.1,...         'startdelay',1,...         'executionmode', 'fixedrate',...         'timerfcn',@moveintruderout)...  start(t);  start(t1);  start(t2); 

my problem when run program start(t) underlined , following error:

"parse error @ start: usage might invalid matlab syntax"

t has underlined , message says

"value assigned variable 't' might unused"

i have noticed if rid of t2 , start(t2) not error , program works. whats wrong? thanks

at end if each timer have 3 dots continuation characters. combining functions 1 giant mess. t=() not t=()...


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -