Calculate the infinity norm of the 5 × 5 Hilbert matrix.
Please use matlab and show your code.
The MatLab code is,
clc;
clear all ;
n=5;
H=zeros(n);
for i=1:1:n
for j=1:1:n
H(i,j)=1/(i+j-1);
end
end
H
a= norm(H,inf)
The infinity norm of the 5 × 5 Hilbert matrix is 2.2833
Get Answers For Free
Most questions answered within 1 hours.