Wednesday, November 17, 2010
0
MATLAB PROGRAM FOR Ramp continous and discrete
PROGRAM
% ramp continous and discrete
n=0:.1:10;
subplot(211); %breaks figure window into 2*1 matrix and select 1st axis for current plot
plot(n,n); %plotting the value of n against n for getting ramp signal
title('ramp continous');
xlabel('time');
ylabel('amplitude');
subplot(212); %breaks figure window into 2*1 matrix and select 2nd axis for current plot
stem(n,n); %discrete plot
title('ramp discrete');
xlabel('time');
ylabel('amplitude');
n=0:.1:10;
subplot(211); %breaks figure window into 2*1 matrix and select 1st axis for current plot
plot(n,n); %plotting the value of n against n for getting ramp signal
title('ramp continous');
xlabel('time');
ylabel('amplitude');
subplot(212); %breaks figure window into 2*1 matrix and select 2nd axis for current plot
stem(n,n); %discrete plot
title('ramp discrete');
xlabel('time');
ylabel('amplitude');
OUTPUT
This post was written by: noufel n backer
Subscribe to:
Post Comments (Atom)
0 Responses to “MATLAB PROGRAM FOR Ramp continous and discrete”
Post a Comment