from
Continuous Cosine and Discrete Cosine
by Nikhil Prathapani
Generation of Cosine signal in continuous and discrete time.
|
| cosee.m |
clear all;
close all;
clc;
N=10;
n=-N:0.1:N;
y=cos(n);
subplot(2,1,1);
plot(n,y);
ylabel('amplitude');
xlabel('time-->');
title('continuous cosine signal');
display(y);
subplot(2,1,2);
stem(n,y);
ylabel('amplitude');
xlabel('number of samples-->');
title('discrete cosine signal');
display(y);
|
|
Contact us