% program file lab200910081.m
clear all;
k = 0;
tt = 0:0.01:10;
for t=0:0.01:10
k = k + 1;
x1(1,k) = cos(2*pi*0.5*t);
x2(1,k) = sin(2*pi*5*t);
x3(1,k) = x1(1,k)*x2(1,k);
end
subplot(311);
plot(tt,x1);
xlabel('t,(s)');
ylabel('x(t)');
grid;
subplot(312);
plot(tt,x2);
xlabel('t,(s)');
ylabel('x(t)');
grid;
subplot(313);
plot(tt,x3);
xlabel('t,(s)');
ylabel('x(t)');
grid;
沒有留言:
張貼留言