Thursday 19 December 2013

Program for Ramp Function and Sequence

close all;
clear all;
clc;
t=0:1:25;
r=t;
subplot(2,1,1);
plot(t,r);
xlabel('time');
ylabel('amplitude');
title('ramp function');
subplot(2,1,2);
stem(t,r);
xlabel('time');
ylabel('amplitude');
title('ramp sequence');

Output:



No comments:

Post a Comment