Solving an equation through optimization..........

Y=Ax
y is a mX1 matrix
A is a mXn matrix
x is a nX1 matrix
AA'=I
Here we apply optimization technique to solve x instead of taking inverse of A. Will you explain me why...............Please help me........

 채택된 답변

Walter Roberson
Walter Roberson 2013년 2월 25일

0 개 추천

inverse is only strictly defined for square matrices.
You could use pinv() or the backslash operator ('\')

댓글 수: 7

Tinkul
Tinkul 2013년 2월 25일
A is a square matrix.Even though A is a square matrix we apply optimization...Why.....
Walter Roberson
Walter Roberson 2013년 2월 25일
No, you said A is mxn which is not square unless m == n
Tinkul
Tinkul 2013년 2월 25일
Sorry,i applogy for that...m==n(ie, A is square matrix).Then why we use optimization...
Tinkul
Tinkul 2013년 2월 25일
Sir, will you tell me why optimization algorithm is used to solve Y=Ax instead of taking A inverse.
There are good reasons to not use inv however. The main one is
numerical considerations.
Here is the second paragraph of the description for inv in the documentation:
In practice, it is seldom necessary to form the explicit inverse of a matrix. A frequent misuse of inv arises when solving the system of linear equations.
One way to solve this is with x = inv(A)*b. A better way, from both an execution time and numerical accuracy standpoint, is to use the matrix division operator x = A\b. This produces the solution using Gaussian elimination, without forming the inverse. See \ and / for further information.
Walter Roberson
Walter Roberson 2013년 2월 25일
So EXECUTION TIME and NUMERICAL ACCURACY.

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Optimization Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by