×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

help :how to implement do while loop in matlab

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

RE: help :how to implement do while loop in matlab

In the MATLab command window type

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

or

>> 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

Hi,
  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

(OP)
thanks for replying guys

Anyway i have already implemented this.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources