Solving a system of equations with fsolve with different dimensions of the initial/output variables
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Magnus
am 10 Nov. 2014
Beantwortet: Star Strider
am 10 Nov. 2014
Hey all,
I'd like to solve a system of functions that comprises of vetors and scalars. I used to use fsolve, which works fine in the case of scalars or vectors only. However, in fsolve the solution vector can only be of one dimension type, not of several ones, as far as I am concerned. Does anybody know how to deal with this problem?
Kind regards,
0 Kommentare
Akzeptierte Antwort
Star Strider
am 10 Nov. 2014
The fsolve function returns a vector of parameters that solve the system of equations you give it in your objective function. If you want to re-create the data your functions generate, you have to calculate your functions with the parameter vector fsolve returns.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Systems of Nonlinear Equations 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!