MATLAB The following square matrices are factors of the matr

MATLAB

The following square matrices are factors of the matrix A, A=LU. [2 -3 -1 0 1 4 0 0 2] [1 0 0 2 1 0 -1 3 1] Find A and A^-1 Compute the L_1 norm of A according to: ||A||_1 = max_1 lessthanorequalto j lessthanorequalto n sigma_i = 1^m |alpha_ij| (the maximum absolute column sum of the matrix)

Solution

L = [2 -3 -1
    0 1 4
    0 0 2];
U = [1 0 0
    2 1 0
    -1 3 1];

A = L*U;
Ainv = inv(A);

max = 0;
for j=1:1:3
    sum = 0;
    for i=1:1:3
        sum = sum + A(i,j);
    end
    if (sum>max)
        max = sum;
    end
end
norm = max;
disp(A);
disp(Ainv);
disp(norm);

MATLAB The following square matrices are factors of the matrix A, A=LU. [2 -3 -1 0 1 4 0 0 2] [1 0 0 2 1 0 -1 3 1] Find A and A^-1 Compute the L_1 norm of A acc

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site