Why am i getting the : errir using inv ,Matrix must be square?

4 vues (au cours des 30 derniers jours)
Gn Gnk
Gn Gnk le 8 Nov 2019
Commenté : Walter Roberson le 10 Nov 2019
Hello ,
i have a created a toeplitz matrix H which is 12x8 .I want to run the command:
y=inv(H) but the compiler says : Error using inv Matrix must be square
Do you know where is the problem?
  3 commentaires
Gn Gnk
Gn Gnk le 9 Nov 2019
I want to find the equalizer of zero forcing fk :
Καταγραφή.PNG
So in order to find the fk matrix i need to multiply g matrix with the inverse of toeplitz matrix h
KALYAN ACHARJYA
KALYAN ACHARJYA le 9 Nov 2019
Is "h" is the square matrix?

Connectez-vous pour commenter.

Réponses (1)

Fabio Freschi
Fabio Freschi le 9 Nov 2019
As James Tursa said, inv(H) is not defined when H is not square. If you have the matrix H and the rhs g, simply use
f = H\g;
  1 commentaire
Walter Roberson
Walter Roberson le 10 Nov 2019
Or in some cases pinv() can be used instead of inv()

Connectez-vous pour commenter.

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