Effacer les filtres
Effacer les filtres

How to solve this simple matricial system?

1 vue (au cours des 30 derniers jours)
Elia Paini
Elia Paini le 19 Juin 2021
Commenté : Elia Paini le 20 Juin 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!

Réponse acceptée

Matt J
Matt J le 20 Juin 2021

Plus de réponses (1)

Jonas
Jonas le 19 Juin 2021
Modifié(e) : Jonas le 19 Juin 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

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by