Incorrect number or types of inputs and outputs for function 'isfinite'
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Florian Bidaud
le 7 Sep 2023
Modifié(e) : Florian Bidaud
le 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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!