MATLAB Answers

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

조회 수: 8(최근 30일)
Gn Gnk
Gn Gnk 8 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

James Tursa
James Tursa 8 Nov 2019
The problem is that the inverse of a non-square matrix is not defined. What would you be using inv(H) for downstream in your code?
Gn Gnk
Gn Gnk 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 9 Nov 2019
Is "h" is the square matrix?

로그인 to comment.

답변 수 (1)

Fabio Freschi
Fabio Freschi 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

Walter Roberson
Walter Roberson 10 Nov 2019
Or in some cases pinv() can be used instead of inv()

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by