fmaxplot = 20; wmaxplot = 2*pi*fmaxplot; w = -wmaxplot : 0.01 : wmaxplot; H = 2 ./ (2 + j*w); Hmag = abs(H); Hphase = phase(H); figure; plot(w, Hmag); title('Magnitude Response'); figure; plot(w, Hphase); title('Phase Response');
You'll need to put in your formula for H.