unit delay in z-domain, is this correct? I do not think the bode is correct. Thanks

6 views (last 30 days)
z = tf('z',1e-4);
%L = T/S; % open loop in s domain
%L_z = c2d(L, 1e-4, 'zoh'); % sample L
delay = 1/z; % delay transfer function
%L_z_delayed = L_z * delay; % delayed L
%margin(L_z_delayed);
bode(delay)

Accepted Answer

Paul
Paul on 9 Jun 2025
Hi Mohammad,
What exactly about the Bode plot appears to be incorrect?
The gain of the unit delay should be 1 (or 0 dB) at all frequencies, which is what the plot shows insofar as 2e-15 dB is essentially 0 dB. The phase plot looks as expected as well.
  3 Comments
Paul
Paul on 9 Jun 2025
That's true if the frequency axis is linear, not logarithmic as is the case with bode
z = tf('z',1e-4);
delay = 1/z; % delay transfer function
h = bodeplot(delay);
setoptions(h,'FreqScale','linear')

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!