function rmps()
f=input('enter the sample frequency= ');
l=input('enter the length of the sequence= ');
Ts=1/f;
n=1:l;
x(n)=n-1;
n=0:l-1;
stem(n*Ts,x,'fill');
title('ramp function');
xlabel('time in secs');
ylabel('amplitude');
given is the example for sample frequency 25000 and sample length 40.
PLEASE LEAVE A COMMENT :)
f=input('enter the sample frequency= ');
l=input('enter the length of the sequence= ');
Ts=1/f;
n=1:l;
x(n)=n-1;
n=0:l-1;
stem(n*Ts,x,'fill');
title('ramp function');
xlabel('time in secs');
ylabel('amplitude');
given is the example for sample frequency 25000 and sample length 40.
PLEASE LEAVE A COMMENT :)
0 comments:
Post a Comment