Unit Ramp Signal in MATLAB
%Unit Ramp Signal in MATLAB
close all;
clc;
n=-20:20;
ramp_n=(n>=0).*n;
stem(n, ramp_n);
axis([-20 20 -20 20]);
xlabel('Time
Sample');
ylabel('Amplitude')
https://www.facebook.com/matlabcodes
Join us on Telegram:
https://t.me/matlabirawen
Join us on Facebook Group:
https://www.facebook.com/groups/matlabcodes
No comments