You are on page 1of 3

clc ;

clear all;
close all;
t= -pi : 0.1 :pi ;
z =cos(t);
subplot (2,1,1);
plot (t,z);
title('Continous Cosine Signal');
xlabel ('Time');
ylabel ('Amplitude');
subplot (2,1,2);
stem (t,z);
xlabel ('Time');
ylabel ('Amplitude');
title('Discrete Cosine Signal');

You might also like