Matlab problems PROBLEM 1 (25 points) Use a for loop to fill the Hilbert matrix:
ID: 2268211 • Letter: M
Question
Matlab problems
PROBLEM 1 (25 points) Use a for loop to fill the Hilbert matrix: i= 10 and j= 10 PROBLEM 2 (25 points) Plot the below function on three different graphs. The first plot needs to be on a semi-log graph, with a logarithmic scale on the x-axis, the second plot on a semi-log graph, with a logarithmic scale on the y-axis, and the third plot on a log-log graph with a logarithmic scale on both axes y = (x-3)2(x + 1)5(x-2)3(x + 2)4 0 sxs100000 PROBLEM 3 (25 points) Plot the following functions on the same graph. Use the left y axis to plot yi and the right y axis to plot y2: PROBLEM 4 (25 points) Using Matlab, solve the following linear system of equations for w, x, y, and z. w+3x+3y-z 5w-2x-3y+3z =-47 = 49Explanation / Answer
n=10;
H = zeros(n,n);
for i = 1:n;
for j = i:n;
H(i,j) = 1 / (i+j-1);
H(j,i) = H(i,j);
end;
end;
H
Scond Method