bernie ----

Joined: 01 Mar 2010 Posts: 1 Feedback Score: 0
Medals: None
|
Posted: Mon Mar 01, 2010 5:28 pm Post subject: how to stop a function that lasts for too long?
|
|
|
hi, first of all I'm new to Matlab.
I'm working on a code where I need to use a function (hypergeom.m) that, apparently, doesn't work properly. Depending on the parameters this function may get slower or even never give back any result.
Since in my code i need to use it many times, I'd like to be able to say something like "if in 10 seconds this function doesn't give back any result, stop evaluating it and do something else".
Is there a way to do it?
many thanks to everyone will try to help me
Bernie |
|