How to implement Linear equations system

조회 수: 8 (최근 30일)
Andre589
Andre589 2016년 11월 15일
댓글: Star Strider 2016년 11월 15일
Hello everyone, I am kinda new in MatLab and I got a question how to implement this Linear Equation System
[5] = [1 1] [x0]
[10] = [1 2] [v0]
These are my equations and I need to solve it with MatLab. We should use the Y=inv(x) command.
Can anyone help me with these?

답변 (1개)

Star Strider
Star Strider 2016년 11월 15일
I believe this would work if I understand your equations correctly:
x0v0 = inv([1 1; 1 2]) * [5; 10];
  댓글 수: 2
Andre589
Andre589 2016년 11월 15일
Thanks this really helped. If I implement the equations only, I do x0=[1 1]*[5] and v0=[1 2]*[10]
am I right?
Star Strider
Star Strider 2016년 11월 15일
My pleasure.
You would implement the equations as:
Out = [1 1; 1 2] * x0v0;
if I understand correctly what you want to do.
Any text on linear algebra (or matrix algebra) will give you all the details on how matrix multiplication works.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by