0% found this document useful (0 votes)
18 views1 page

Unit Ramp Signal in MATLAB

The document describes the unit ramp signal, defined mathematically for t values. It provides MATLAB code to generate and plot the unit ramp signal over the range of -20 to 20. The plot includes labeled axes and a title for clarity.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Unit Ramp Signal in MATLAB

The document describes the unit ramp signal, defined mathematically for t values. It provides MATLAB code to generate and plot the unit ramp signal over the range of -20 to 20. The plot includes labeled axes and a title for clarity.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Unit Ramp Signal in MATLAB

The unit ramp signal is defined as:

x(t) = t for t >= 0

x(t) = 0 for t < 0

MATLAB Code:

t = -20:1:20;

x1 = t;

x2 = 0;

x = x1.*(t>=0) + x2.*(t<0);

figure(3); plot(t,x);

xlabel('t'); ylabel('x(t)'); title('Ramp Signal');

You might also like