[bug #68196] Wrong phase in bode plot
controldesigner <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
URL:
<https://savannah.gnu.org/bugs/?68196>
Summary: Wrong phase in bode plot
Group: GNU Octave
Submitter: controldesigner
Submitted: Mon 30 Mar 2026 06:53:16 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
Release: 11.1.0
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 30 Mar 2026 06:53:16 PM UTC By: controldesigner <controldesigner>
I am getting incorrect bode plot results when plotting a discrete time
integrator.
example:
w = 2*pi*[0.001:0.001:50];
Ts = 1/100;
z = tf('z',Ts);
G = Ts/2 * (z+1)/(z-1);
[M,P,W] = bode(G, w);
P is just zeros
vs
H = freqresp(G, w);
angle(H)
angle(H) results in -1.5708
_______________________________________________________
File Attachments:
Name: Screenshot@from@[email protected] Size: 26KiB
<https://file.savannah.gnu.org/file/Screenshot%40from%402026-03-30%4011-52-28.png?file_id=58415>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-f290f6b25beb8cb99bbe243a6cd2c5fef79ffcde.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68196>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCacrGpAAKCRCqLAuaBUf3 TkHHAP0WJbDifgQlEcaUqxHMPtlDzd7QZDcCfSCambi9y++NtAEA3W9NPtASVlev 7G8KPror2HB4uXJg6toS19KQMSy6ZAo= =LutI -----END PGP SIGNATURE-----