Hi, in my code there are two while loops but when I run the program only on work at a time. my question is: How to make all the loops work together at any moment?
this a sample code for understanding the question:
%%first while loop
count = 0; while count ~= 1 %%*statements*
pause(1) end%%second while loop
count = 0; while count ~= 1 %%*different_statements*
pause(1) end
As you can see the loop made to be infinite loop, so when I used two of them in one code only one work at a time.
Best Answer