Matlab - problem with loops (continue function)

Status
Not open for further replies.

safwatonline

Advanced Member level 4
Joined
Nov 19, 2005
Messages
1,341
Helped
219
Reputation
438
Reaction score
48
Trophy points
1,328
Location
EGYPT
Activity points
9,038
Matlab

I have a matlab script that consists of a loop evaluating a certain function, sometimes this function doesn't converge, and hence the script stops without evaluating the rest of the loop.
is there someway to automatically skip the error (like putting Nan or zeros for the function output) and continue evaluating the rest of the loop.
thnx
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…