help :how to implement do while loop in matlab
help :how to implement do while loop in matlab
(OP)
can anyone help me with this ,
how to implement do while loop in matlab
how to implement do while loop in matlab
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
help :how to implement do while loop in matlab
|
RE: help :how to implement do while loop in matlab
help for
The information you want should be there.
jdm
"Education is what remains after one has forgotten everything he learned in school." Albert Einstein
RE: help :how to implement do while loop in matlab
>> help while
as the case might be.
Additionally, F1 followed by a search for "while" will pull up the help file entry including additional information
TTFN
RE: help :how to implement do while loop in matlab
I don't think that exists a do-while in matlab, but you can use this treak
temp = 1;
while ( temp | condition )
temp = 0;
...
...
end
In such a way the first cycle is always true but from the second you remain in the while loop only if your condition is verified.
I don't know your program but pheraps you can use only condition if it is well settled at the beginning of the loop.
Hi
Gianluca
RE: help :how to implement do while loop in matlab
Anyway i have already implemented this.