fig1_21 - axis([-10,30,-1.5,1.5]); subplot(222),stem(n,x2)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% This plots Figure 1.21 a) and b) % n = -10:30; OMEGA1 = pi/3; OMEGA2 = 1; x1 = cos(OMEGA1*n); x2 = cos(OMEGA2*n); clf subplot(221),stem(n,x1) xlabel('n') ylabel('x[n]') title('Figure 1.21 a')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: axis([-10,30,-1.5,1.5]); subplot(222),stem(n,x2) xlabel('n') ylabel('x[n]') title('Figure 1.21 b') axis([-10,30,-1.5,1.5]); subplot(111)...
View Full Document

Ask a homework question - tutors are online