Incorrect number or types of inputs and outputs for function 'isfinite'
17 ビュー (過去 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!