I get aCode:function recbisect(f,a,b,n,err) c = a + ( b-a)/2; fx= inline(f); fc= feval(fx,c); fprintf('\n n c fc %g %g %g' , n,c,fc ); if fc < err return end sa = sign(feval(fx,a)); sb = sign(feval(fx,b)); sc = sign(fc); if ( sa == sc ) recbisect(f,a,c,n,err); else recbisect(f,c,b,n,err); end end
??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.
Error in ==> iscellstr at 22
How can i stop the recursion when the if condition is met.
Please help.


LinkBack URL
About LinkBacks
