May I know what is wrong with my code? When i run the code, error message 'Function definitions are not permitted in this context.' keeps popping up. I copied this code from the example given in the function browser for fsolve.
function F = myfun(x)
F = [x(1)-(130^2)*0.41351*16*x(2)/(2*44145);
x0 = [0; 0];
[x,fval] = fsolve(@myfun,x0,options);
Thanks! Your help is very much appreciated!