Info

此问题已关闭。 请重新打开它进行编辑或回答。

can not run the code for system of equations

1 次查看(过去 30 天)
hello.
I am very new to matlab. I have to solve a system of 21 equations with 21 variable, but to start i did it for just 3 equations and 3 unknown ,with the following code. It gives me the answer, but for the big one, my code doesn't run and a stop bottom appears below right hand of command window. I dont know how to deal with the big code ( 21 equations). I aslo tried fsolve which gives me error always.
syms x y z
f1=x^2+y-3;
f2=x-y+1;
f3=x^4-y*2+2*z;
[solx,soly,solz] = solve(f1 == 0, f2 == 0,f3 == 0 )

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by