How to solve this simple matricial system?

조회 수: 2 (최근 30일)
Elia Paini
Elia Paini 2021년 6월 19일
댓글: Elia Paini 2021년 6월 20일
Hi, how can I solve this simple system in Matlab?
A*u = h*G
A: 4x4
u: unknowns vector, but it should be 4x1
h: scalar
G: vector, Nx1
I tried with u = h*G*inv(Au), but u is calculated as a matrix in this way.
Thank you!

채택된 답변

Matt J
Matt J 2021년 6월 20일

추가 답변 (1개)

Jonas
Jonas 2021년 6월 19일
편집: Jonas 2021년 6월 19일
you have to left multiply the matrix not right multiply
inv(A)*A*u=inv(A)*h*G;
leading to
I*u=inv(A)*h*G;
with I being the identy matrix

카테고리

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