Bode diagram of a rectangular pulse

Hi, how can I plot a Bode diagram of a rectangular pulse (rectangular pulse defined in time domain)? Thanks a lot!

 Accepted Answer

A rectangular pulse is a step function minus a delayed step function:
T = 1;
s = tf('s');
bode(ss(1/s) - ss(1/s*exp(-T*s)))

2 Comments

GENIUS! THANKS A LOT!
ok now I have another problem: if I have the output Y(s) of a linear system, how can I calculate the inverse laplace trasform if Y(s) isn't in symbolic form?
thanks

Sign in to comment.

More Answers (1)

I think you are going to have to provide more information. in the mean time, try:
bode % with no arguments

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!