[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61355] [octave forge] (control) Error on phas
From: |
Luiz Antonio Maccari Junior |
Subject: |
[Octave-bug-tracker] [bug #61355] [octave forge] (control) Error on phase value of bode and margin plots |
Date: |
Mon, 25 Oct 2021 17:08:55 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0 |
Follow-up Comment #6, bug #61355 (project octave):
An additional bug was detected. If you insert the values of the frequencies in
the bode function for frequencies after the resonance the phase values return
NaN. Example:
s = tf('s');
TF2 = 1/(s^5*(s+2)*(s+10)*(s^2+100))
w = [9:0.1:11];
[mag, fase] = bode(TF2,w)
However if we use the bode function without specifying the frequencies the
bode plot can give a phase plot with finite values.
Studying the bode function I see the problem related with the function unwrap
which uses a summation and when we have an ideal resonance the argument of the
frequency response is NaN. To bypass this error it is needed to put a damping
values for the resonant. As for example:
s = tf('s');
TF2 = 1/(s^5*(s+2)*(s+10)*(s^2+0.001+100))
w = [9:0.1:11];
[mag, fase] = bode(TF2,w)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61355>
_______________________________________________
Mensagem enviada pelo Savannah
https://savannah.gnu.org/