Incorrect number or types of inputs and outputs for function 'isfinite'
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Weiying
am 7 Sep. 2023
Kommentiert: Weiying
am 7 Sep. 2023
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 Kommentare
Akzeptierte Antwort
Florian Bidaud
am 7 Sep. 2023
Bearbeitet: Florian Bidaud
am 7 Sep. 2023
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!