how to solve non linear system of equations with variable coefficients in matlab

1 回表示 (過去 30 日間)
ik kumar
ik kumar 2022 年 6 月 9 日
回答済み: Torsten 2022 年 6 月 9 日
eq1=a-(b*z*x)/(c + x)-d*x;
eq2=e-(f*y*w)/(g + w) - h*y;
eq3=(-b*z*x)/(c + x) + (f*y*w)/(g + w) + (m*z*x)/(y - n) - u*z;
eq4=(b*z*x)/(c + x) - (f*y*w)/(g + w) - v*w;

回答 (1 件)

Torsten
Torsten 2022 年 6 月 9 日
You might first try if a symbolic solution exists:
syms a b c d e f g h m n u v w x y z
eq1=a-(b*z*x)/(c + x)-d*x == 0;
eq2=e-(f*y*w)/(g + w) - h*y == 0;
eq3=(-b*z*x)/(c + x) + (f*y*w)/(g + w) + (m*z*x)/(y - n) - u*z == 0;
eq4=(b*z*x)/(c + x) - (f*y*w)/(g + w) - v*w == 0;
S = solve([eq1,eq2,eq3,eq4],[choose four variables you want to solve for])
Since I doubt that you get a solution, next use a nonlinear solver: Assign values to all the parameters except the four you want to solve for and call "fsolve".

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by