Incorrect number or types of inputs and outputs for function 'isfinite'
62 次查看(过去 30 天)
显示 更早的评论
I want to solve this nonlinear system, but it always says in red: Incorrect number or types of inputs and outputs for function 'isfinite', and I'm a beginner I don't know how to fix it.
Could you please give me some advice? Thx.
x=fsolve('@system',[0 0])
function f=system(x)
f=[2*x(1)+x(2)+x(1)^3; x(1)+x(1)*x(2)+exp(x(1))];
end
0 个评论
采纳的回答
Florian Bidaud
2023-9-7
编辑:Florian Bidaud
2023-9-7
You need to remove the quotes
x=fsolve(@system,[0 0])
function f=system(x)
f=[2*x(1)+x(2)+x(1)^3; x(1)+x(1)*x(2)+exp(x(1))];
end
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!