星期四, 10月 29, 2009

matlab 2009 10 29 01


% program file lab2009102901.m

clear all;
clf;

dt = 0.01;
t =0:dt:5;
x1 = cos(2*pi*10*t);
x2 = cos(2*pi*35*t);


subplot(311);
plot(t,x1,'r');

subplot(312);
plot(t,x2,'g');

subplot(313);
%stem(n,x_n,'b');

沒有留言: