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 use MATLAB** 11)Function: Create a function that takes inputs “x” and “z” and generates any...
**Please use MATLAB** 11)Function: Create a function that takes inputs “x” and “z” and generates any random matrix of dimension “x” or “z”, whichever is larger. 12)Function: Create a function that takes a generic matrix, x, and finds the smallest value in the matrix. The function must work for matrices of any size or dimension. **Please use MATLAB** Also, please include code used for the function. I have tried several times but have been unsuccessful.
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.)
Show that a triangular matrix is normal if and only if it is diagonal. Please use...
Show that a triangular matrix is normal if and only if it is diagonal. Please use clear, intelligable writing.
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.)
Please do this in Matlab Using a single for-loop and no if-statements, write a code that...
Please do this in Matlab Using a single for-loop and no if-statements, write a code that will create a 10x10 matrix with 2 on the diagonal, and -1 on any entry right next to the diagonal.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT