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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -