Question

Calculate the infinity norm of the 5 × 5 Hilbert matrix. Please use matlab and show...

Calculate the infinity norm of the 5 × 5 Hilbert matrix.

Please use matlab and show your code.

Homework Answers

Answer #1

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

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab...
Matlab equation solve code please show me the code for how to solve x=1-e^-2x in Matlab with explanation show me the code and result
please do on matlab Create the 10×10 elementary matrix E that would switch the rows 3...
please do on matlab Create the 10×10 elementary matrix E that would switch the rows 3 and 7. Do not enter the matrix manually, but use the command eye to create the identity matrix and modify the appropriate entry. For instance >> E(3,3)=0 with change the (3, 3) entry of E to 0. Test your matrix with a random 10 × 10 matrix.
IN MATLAB Calculate the transpose (and the complex conjugate) of the matrix Z = [1+2j, 3+4j;...
IN MATLAB Calculate the transpose (and the complex conjugate) of the matrix Z = [1+2j, 3+4j; 5+6j, 7+9j].
Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1...
Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1 on the super- and sub-diagonal. Then replace the (1,1) element of A with a 1. (Make your commands capable of handling an arbitary sized NxN matrix by first defining N=5, then using the variable N as the size in each of the commands.)
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of...
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of negative (<0). Hard code matrix in program. Use nested loops and an if-else-end structure to count (+) and (-) entries. Program should display original matrix and number of positive/negative entries.
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of...
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of negative (<0). Hard code matrix in program. Use nested loops and an if-else-end structure to count (+) and (-) entries. Program should display original matrix and number of positive/negative entries.
Exercise 1: Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal,...
Exercise 1: Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1 on the super- and sub-diagonal. Then replace the (1,1) element of A with a 1. (Make your commands capable of handling an arbitary sized NxN matrix by first defining N=5, then using the variable N as the size in each of the commands.)
Write a MATLAB function that outputs number of values in a matrix that’s greater than a...
Write a MATLAB function that outputs number of values in a matrix that’s greater than a compare value. The function must able to take in an arbitrary size matrix. Name your script/program as “Quiz 2”. Examples : Matrix = [1 2 3; 4 5 6]           Compare_Value = 2 Output = 4 Matrix = [1 2 3 1; 4 5 6 8]           Compare_Value = 2 Output = 5
By Using Matlab Matcal (A, B) returns matrix A and B products, while printing the matrix...
By Using Matlab Matcal (A, B) returns matrix A and B products, while printing the matrix computation formula in outmat. txt file as follows. (The sizes of A and B are very variable. In other words, it shall be possible to perform operation for matrix operation of 2 x 2 size, and it shall also be possible to calculate and output for 100 X 100 matrix models. ) >> A = [1 23;4 56 ; 79] >> B = [0...
Using MATLAB, not R codes, I repeat, please, not in R, just MATLAB codes, write the...
Using MATLAB, not R codes, I repeat, please, not in R, just MATLAB codes, write the complete code for: 1. Assume Y is an exponential random variable with rate parameter λ=2. (1) Generate 1000 samples from this exponential distribution using inverse transform method (2) Compare the histogram of your samples with the true density of Y.