Discrete and Continuous Ramp Function | In MATLAB | CODE

Write the codes for Discrete and Continuous Ramp Function.

Source Code

x=-5:1:5;

y=[zeros(1,6) 1:1:5];

plot(x,y);

legend('Ramp Function')

title ('Lab 4')


Result 





Post a Comment

0 Comments