www.kluid.comKluid Home | Contact Us  | FAQFAQ    | SearchSearch | DownloadAttachment Manager  | Private messagesPrivate messages  | RegisterRegister  | Log inLog in   
Kluid Forum Index
Forum for Computational Languages & Techniques
 
 Please help us to develop!

Calendar
how to stop a function that lasts for too long?

 
Post new topic   Reply to topic       Kluid Forum Index -> Matlab : Utilities
Author Message
bernie
----
----


Joined: 01 Mar 2010
Posts: 1
Feedback Score: 0


Medals: None

PostPosted: Mon Mar 01, 2010 5:28 pm    Post subject: how to stop a function that lasts for too long? Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic       Kluid Forum Index -> Matlab : Utilities All times are GMT - 12 Hours
Page 1 of 1

 


Kluid © 2006, Kluid Management      php.B.B © 2006
www.kluid.comKluid Home | FAQFAQ    | RegisterRegister  | Log inLog in