i need some help for fsolve function with input data
显示 更早的评论
v,t are input variable and x must be calculate.when run my code repeat input data request without answer!!
function f=vogel(v,t,x)
t(1)=input('temp1:');
t(2)=input('temp2:');
t(3)=input('temp3:');
v(1)=input('vis1:');
v(2)=input('vis2:');
v(3)=input('vis3:');
x(1)=input('estim a:');
x(2)=input('estim b:');
x(3)=input('estim c:');
f(1)=log(v(1))-log(x(1))-(x(2)/((t(1)+273.15)-x(3)));
f(2)=log(v(2))-log(x(1))-(x(2)/((t(2)+273.15)-x(3)));
f(3)=log(v(3))-log(x(1))-(x(2)/((t(3)+273.15)-x(3)));
[x,fval] = fsolve(@(x) vogel(v,t,x), x);
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Downloads 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!