I have a for loop and I call a function inside it. What I want to do, is detect if this function call created any warnings and if so continue. Something like:
for i=1:len c = my_func1(arguments); if (any warning) continue; endend
Any suggestions? I tried to use lastwarn, without success though.
Best Answer