How can I solve this equation by using "fsolve" :
Ältere Kommentare anzeigen
Functions = [a+b-c=0; -b+d+e=0; f+i-g=0; f+g=0; i-j=0; c=2; d=10; a=2g^2; b=f^3; i=e];
1 Kommentar
Roger Stafford
am 26 Dez. 2012
There is a very good reason why fsolve is having difficulties with your ten equations. If the obvious substitutions are made, they can be reduced to two cubic equations in the single unknown f:
f^3 + 2*f^2 - 2 = 0
f^3 + 2*f - 10 = 0
These two equations have no roots in common. Hence your ten equations can have no solution. They are mutally incompatible.
Roger Stafford
Antworten (4)
Walter Roberson
am 25 Dez. 2012
fsolve(@(x) [x(1)+x(2)-x(3); -x(2)+x(4)+x(5)....], ones(10,1))
m
am 26 Dez. 2012
Bearbeitet: Andrei Bobrov
am 26 Dez. 2012
1 Kommentar
Andrei Bobrov
am 26 Dez. 2012
2x(7)^2 -> 2*x(7)^2
m
am 26 Dez. 2012
0 Stimmen
Kategorien
Mehr zu Structural Mechanics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!