Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Stopping an if statement
Replies: 2   Last Post: Jan 17, 2013 1:20 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jos

Posts: 1,266
Registered: 10/24/08
Re: Stopping an if statement
Posted: Jan 10, 2013 7:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Halley" wrote in message <kcm7kc$lni$1@newscl01ah.mathworks.com>...
> I have a series of functions I want to complete if a certain statement is true, In this case it is
>
> if p(i,j,k) <= -1
> How do I stop the loop after this has been proven true only once? I only care about the first occurence of this being true in my matrix, only at that point do I want to run my other functions. Thank you.


help break

~ Jos



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.