Discrete Time and Continuous Time Unit Step Function | In MATLAB | CODE

Write the codes for Discrete Time and Continuous Time Unit Step Function.

Source code:

u=[zeros(1,20) ones(1,5)];

plot(u)

title('Lab 4')

legend(' Unit Step Function')

stem (u)

title('Lab 4')

legend(' Unit Step Function')

 

Result:





Post a Comment

0 Comments