Program 1 |
X1 = linspace(0, 4, 25); Y1 = linspace(0, 3, 25); [X,Y] = meshgrid(X1,Y1); Z = X.^2 + Y.^2; figure surf(X,Y,Z) |
OUTPUT
Program 2 (part a, part b) |
radius = 5; pause(3) % View part b |
OUTPUT
Program 3 |
rectangle('Position', [6,1,2,2]) tri_points_x = [6,7,8]; |
OUTPUT
4 3 2 2 5 503 -2 5 -5 5 5 251 0 5 2 2-D Graphics Roof 4 2 Base 4 6 10 X-AXIS
y in the blank lines provided below, insert the approprilate commands) needed to complete the fgure....
MATLAB ONLY gauss.jpg BELOW Instructions: The following problems can be done interactively or by writing the commands iın an M-file (or by a combination of the two). In either case, record all MATLAB input commands and output in a text document and edit it according to the instructions of LAB 1 and LAB 2. For problem 2, include a picture of the rank-1 approximation. For problem 3, include a picture of the rank-10 approximation and for problem 4, include a...