from
Continuous ramp and Discrete ramp
by Nikhil Prathapani
Generation of Ramp signal in continuous and discrete time.
|
| rampp.m |
clear all;
close all;
clc;
N=10;
n=0:1:N-1;
a=input('enter the amplitude factor');
y=a*n;
subplot(2,1,1);
plot(n,y);
ylabel('amplitude');
xlabel('time--->');
title('continuous ramp signal');
display(y);
subplot(2,1,2);
stem(n,y);
ylabel('amplitude');
xlabel('number of samples--->');
title('discrete ramp signal');
display(y);
|
|
Contact us