Matrix inverse with qr resolution?

Hi! Would somebody be able to help? How do I get matrix inverse with QR resolution?

Answers (1)

>> A=rand(3)
A =
0.7026 0.9489 0.4899
0.7449 0.0949 0.3332
0.5794 0.9151 0.8583
It doesn't look like but this is actually QR resolution:
>> A\eye(length(A))
ans =
0.8168 1.3388 -0.9859
1.6320 -1.1671 -0.4786
-2.2913 0.3405 2.3407
Check
>> inv(A)
ans =
0.8168 1.3388 -0.9859
1.6320 -1.1671 -0.4786
-2.2913 0.3405 2.3407
>>

2 Comments

Palinkas Mark
Palinkas Mark on 21 Oct 2018
Edited: Palinkas Mark on 21 Oct 2018
Sorry, I forgot to I don't use these commands:
• \
• /
• inv
• pinv
• linsolve
• ^
• mldivide
• mrdivide
• lsqminnorm
Bruno Luong
Bruno Luong on 21 Oct 2018
Edited: Bruno Luong on 21 Oct 2018
Then it's a homework, so you have to start with something on your own first.

Sign in to comment.

Tags

Asked:

on 21 Oct 2018

Edited:

on 21 Oct 2018

Community Treasure Hunt

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

Start Hunting!