I have no idea how I could solve this equation with matlab:
f(1)=0.098253*x(1)-atan((tan(x(1))-tan(x(2)))/2)*0.531268-0.433015*x(2)-0.27994
f(2)=0.9951*x(1)-atan((tan(x(1))-tan(x(2)))/2)*0.12909+0.866022*x(2)-0.350005;
I tryed with function = f and then [x,eval,flag]=fsolve('ecuaciones',x0); but I have an error:
Error in ==> fsolve at 254 fuser = feval(funfcn{3},x,varargin{:});
Caused by: Failure in initial user-supplied objective function evaluation. FSOLVE cannot continue.
And Matlab says to me that is double type... but I have no idea how I can resolve!! I am new using Matlab, for that reason I need the answer clearly!!
THANK YOU!
f(2)-f(1)=0
? – randomatlabuserx0
? Andd exactly what is yourecuaciones
function? Real code wis appreciated. – horchler