MATLAB qr

The qr function calculates the QR decomposition of any matrix.

Contents

  1. MATLAB qr
    1. Usage


Usage

To solve the problem Ax = b for any size matrix A, try:

[Q, R] = qr(A);
y = Q' * b;
x = R \ y;

The original A can be returned by Q*R.


CategoryRicottone

MATLAB/Qr (last edited 2026-02-07 04:43:47 by DominicRicottone)