How to solve this simple matricial system?

1 次查看(过去 30 天)
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 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by