حل معادله غیر خطی با متلب
من برای حل 4 معادله غیر خطی این فانکشن زیر رو نوشتم اما وقتی ران می کنم یک مقدار محاسبات انجام میده و آخرش این پیغام زیرش میاد. معنی این پیغام چیه؟
Solver stopped prematurely.
fsolve stopped because it exceeded the function evaluation limit,
options.MaxFunEvals = 400 (the default value).
کد:
function fsolveDemo
% x(1) = Vavg, x(2) = Re, x(3)= Vdot, x(4)=f
% x0 is a starting guess of Vang and Re and Vdot and f.
x0 = [4.23 68300 0.24 0.0195 ];
options=optimset('Display','iter');
x = fsolve(@myfun,x0,options);
end
function F = myfun(x)
F = [x(1)*pi*(0.267^2) - 4*x(3);
x(2)*(10^(-5))*1.655 - x(1)*0.267;
1/(sqrt(x(4)) + 2*log10(2.51/(x(2)*sqrt(x(4)))));
20 - (300*x(4)*(x(1)^2))/((0.267*2*9.81))];
end