How to solve this simple matricial system?

1 visualización (últimos 30 días)
Elia Paini
Elia Paini el 19 de Jun. de 2021
Comentada: Elia Paini el 20 de Jun. de 2021
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!

Respuesta aceptada

Matt J
Matt J el 20 de Jun. de 2021

Más respuestas (1)

Jonas
Jonas el 19 de Jun. de 2021
Editada: Jonas el 19 de Jun. de 2021
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

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by