From: Ashgard on
Hey,

I need to add a time delay to a system sys.
I'm using the function pade to create the time delay, eg,

Td = 1e-3;
N = 2;
[num,den] = pade(Td,N);
delay = tf(num,den);
bode(delay);

The strange thing now is that the magnitude of the bode is correct (continuously a gain of 1). But the phase is doing weird. For low frequencies the phase is +360 degrees. For high frequencies the phase tends to 0 degrees. I expect that the phase should go from 0 degrees to - 360 degrees...

Is there something I'm doing wrong? Or how can I fix this?

Thanks in advance,
Bob
 | 
Pages: 1
Prev: Plot with events
Next: Save varialbes as .nc files