I would like to manage the computing time of a function. For example :
function y = myfun(x)
y = something_long_to_calculate(x);
and I would like my main code to do something like:
lim = 5;
x = 0;
y = myfun(x);
Obviously, I wouldn't work, the point is how could you limited the time of calculation. In this case, if y should have been a vector 100x1 and the program would just have had time to compute the 10 first iterations, how could I still got those values ?