How can i solve this using MATLAB ?
14 ビュー (過去 30 日間)
古いコメントを表示
2=0.04*F1+0.54*F2+0.26*F3;
6=0.93*F1+0.24*F2+0*F3;
2=0.03*F1+0.22*F2+0.74*F3;
0 件のコメント
回答 (2 件)
Mischa Kim
2015 年 6 月 17 日
Bello, if you have access to the Symbolic Math Toolbox:
syms F1 F2 F3
sol = solve([2==0.04*F1+0.54*F2+0.26*F3,...
6==0.93*F1+0.24*F2+0*F3,...
2==0.03*F1+0.22*F2+0.74*F3], [F1,F2,F3])
sol.F1
ans =
1520/261
0 件のコメント
Star Strider
2015 年 6 月 17 日
Or you can use mrdivide to solve it as a matrix equation in core MATLAB:
F = [0.04 0.54 0.26; 0.93 0.24 0; 0.03 0.22 0.74]\[2; 6; 2];
[F1,F2,F3] = deal(F(1), F(2), F(3))
produces:
F1 =
5.8238e+000
F2 =
2.4330e+000
F3 =
1.7433e+000
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!