Hola, intento resolver esta ecuacion no lineal en Matlab:
Kp=0.01;
Tp=10;
L=0.7;
Kc=1.1;
Pr=0;
Ti=0.1;
foptd3=@(x)[
Kp./(sqrt(1+(x(1).^2*Tp.^2)))-(((x(1)*Ti/(1.1)))./sqrt(1+((x(1)*Ti)+((4*Pr)./pi)).^2));
(-x(1)*L)-atan(x(1)*Tp)+(pi./2)+atan(x(1)+(4*Pr)./pi)
];
x0 = (0);
options = optimoptions('fsolve','Display','iter');
[x,fval]=fsolve(foptd3,x0,options);
Y me dice:
>> FOPTD_3_script
Warning: Trust-region-dogleg algorithm of FSOLVE cannot handle non-square systems; using Levenberg-Marquardt algorithm instead.
> In fsolve (line 342)
In FOPTD_3_script (line 19)
First-Order Norm of
Iteration Func-count Residual optimality Lambda step
0 2 2.4675 15.2 0.01
1 4 0.360624 1.49 0.001 0.161916
2 6 0.119752 0.142 0.0001 0.24074
3 8 0.0283704 0.0367 1e-05 0.760066
4 10 0.0172614 0.00203 1e-06 0.28409
5 12 0.0172386 8.1e-05 1e-07 0.0108042
6 14 0.0172386 3.08e-06 1e-08 0.000436343
7 16 0.0172386 1.16e-07 1e-09 1.65864e-05
No solution found.
fsolve stopped because the last step was ineffective. However, the vector of function
values is not near zero, as measured by the value of the function tolerance.
<stopping criteria details>
¿Cuál es el problema? Gracias.