How do i calculate the inverse of a non-square matrix?

조회 수: 140 (최근 30일)
Feliciano Döring
Feliciano Döring 2018년 4월 24일
댓글: Nirajan Khatri 2020년 11월 24일
I have a 4x3 matrix(S) and i want to calculate the inverse of it, the matrix is:
S=
1.7530 0 0 0
0 0.1009 0 0
0 0 0.0149 0
but since it is not a square matrix when i use S^-1 it says i have to use elemental wise power. The problem is when i use elemental-wise power the zeros go to 'Inf' so what do i do?

채택된 답변

James Tursa
James Tursa 2018년 4월 24일
Typically one would use backslash \ or perhaps pinv( ) for this. What are you using this for? I.e., what is the problem you are solving and what are you doing with the result downstream in your code?
  댓글 수: 3
Mohammed Altaher
Mohammed Altaher 2019년 2월 19일
Is pinv() used here to find the inverse of non square matrix such as 6X5 Jacobian matrix?
Nirajan Khatri
Nirajan Khatri 2020년 11월 24일
@James Tursa sir why we use pinv(), i have 1*2000 matrix and i also want to find its inverse

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Sourabh Guduru
Sourabh Guduru 2020년 9월 8일
pinv(a)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by