星期三, 10月 14, 2009

matlab 2009101501


% program file lab2009101501.m
clear all;
t = -0.05:0.001:0.05;
x1 = 10;
x2 = 14*cos(2*pi*100*t-pi/3);
x3 = 8*cos(2*pi*250*t+pi/2);
x4 = x1 + x2 + x3;

subplot(411);
plot(t,x1);


subplot(412);
plot(t,x2);


subplot(413);
plot(t,x3);


subplot(414);
plot(t,x4);

沒有留言: