%%% ECE 201 Lab Project 1 %%% Author: Kevin %%% Date: 1/30/19 % -- 3.1 -- w = [1, 2; 3, 4] x = [1 2 3 4 5] y = [1, 2, 3, 4, 5] z = [1; 2; 3; 4; 5] nn = 2 * (0:60) mm = 9*ones(1,35) kk = 0:pi/60:pi yy = 1/2-j*sqrt(3)/2 abs(yy) angle(yy) yy * conj(yy) abs(yy)^2 zz4 = [1 0 0 0 .5+1j*sqrt(3)/2] p4=figure; roots(zz4) zplane(zz4) zz8 = [1 0 0 0 0 0 0 0 .5+1j*sqrt(3)/2] p8=figure; roots(zz8) zplane(zz8) zz20 = zeros(21,1) zz20(1,1) = 1 zz20(21,1) = .5+1j*sqrt(3)/2 p20=figure; roots(zz20) zplane(zz20) x1 = 0:1/100:1 y1 = exp(-10*x1) f1=figure; plot(x1,y1) x2 = linspace(0,2*pi,100); y2 = cos(x2); f2=figure; plot(x2,y2); title('x') ylabel('y = cos(x)') grid;