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:
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:
0 Comments