safwatonline
Advanced Member level 4
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
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