From: John on
I am trying to follow this thread here:
http://mathworks.com/matlabcentral/newsreader/view_thread/86473

I have tried both the techniques outlined there to run that example (on MATLAB 7.6.0 R2008a) but whatever I try, I keep getting this error:

>> [x,fval] = fminbnd(@tcf, -100, 100, [], a, b);
??? Undefined function or method 'tcf' for input arguments of type 'double'.

Error in ==> fminbnd at 212
x= xf; fx = funfcn(x,varargin{:});

Can someone help me with the problem?
From: Torsten Hennig on
> I am trying to follow this thread here:
> http://mathworks.com/matlabcentral/newsreader/view_thr
> ead/86473
>
> I have tried both the techniques outlined there to
> run that example (on MATLAB 7.6.0 R2008a) but
> whatever I try, I keep getting this error:
>
> >> [x,fval] = fminbnd(@tcf, -100, 100, [], a, b);
> ??? Undefined function or method 'tcf' for input
> arguments of type 'double'.
>
> Error in ==> fminbnd at 212
> x= xf; fx = funfcn(x,varargin{:});
>
> Can someone help me with the problem?

Bear in mind that the function x^3/(x-1) has a pole
at x=1 ; so the integral from 0 to 2 does not exist.

Best wishes
Torsten.