How can i solve this using MATLAB ?
조회 수: 17 (최근 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!