06.08.2013 Views

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

t=(0:pi/50:2*pi)';k=0.4:0.1:1;Y=cos(t)*k;plot(t,Y)<br />

1<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

-0.2<br />

-0.4<br />

-0.6<br />

-0.8<br />

-1<br />

0 1 2 3 4 5 6 7<br />

图 6.2-1<br />

【例 6.2.1-2】用图形表示连续调制波形 y = sin( t)<br />

sin( 9t)<br />

及其包络线。<br />

t=(0:pi/100:pi)'; % <br />

y1=sin(t)*[1,-1]; % <br />

y2=sin(t).*sin(9*t); % <br />

t3=pi*(0:9)/9; % <br />

y3=sin(t3).*sin(9*t3);plot(t,y1,'r:',t,y2,'b',t3,y3,'bo') % <br />

axis([0,pi,-1,1]) % <br />

1<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

-0.2<br />

-0.4<br />

-0.6<br />

-0.8<br />

-1<br />

0 0.5 1 1.5 2 2.5 3<br />

图 6.2-2<br />

【例 6.2.1-3】用复数矩阵形式画 Lissajous 图形。(在模拟信号时代,Lissajous 图形常用来<br />

测量信号的频率。)<br />

t=linspace(0,2*pi,80)'; % <br />

X=[cos(t),cos(2*t),cos(3*t)]+i*sin(t)*[1, 1, 1]; %(80x3)的复数矩阵<br />

plot(X) % <br />

axis square % <br />

legend('1','2','3')<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!