[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53881] [octave forge] (control) impulse respo
From: |
Torsten Lilge |
Subject: |
[Octave-bug-tracker] [bug #53881] [octave forge] (control) impulse response differs greatly on i386 vs x86_64 |
Date: |
Sat, 3 Jul 2021 10:14:01 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 |
Follow-up Comment #8, bug #53881 (project octave):
I have realized some numerical problems in imp_invar when it comes o systems
with orders higher than 3 or 4, especially when the system has repeated poles.
I have found a quite simple way to compute the impulse invariant
discretization by firstly using c2d with the 'zoh' method for s*G(s) and
multiplying afterwards with z/z-1 (see comment in help test).
I have attached the new inp_invar.m for testing.
A remark: Matlab and obviously also the impinvar routine in the signal package
assume an impulse of height 1/T for the impulse response. imp_invar is
assuming the unit impulse and therefore returns a discrete-time description
multiplied by 1/T compared to impinvar. This was already the case before my
change and, to my impression, is correct from a control perspective.
Discrete-time systems are not necessarily connected to a sampling time and a
test input 1/T makes no sense for system being discrete-time "by nature".
(file #51643)
_______________________________________________________
Additional Item Attachment:
File name: imp_invar.m Size:4 KB
<https://file.savannah.gnu.org/file/imp_invar.m?file_id=51643>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?53881>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #53881] [octave forge] (control) impulse response differs greatly on i386 vs x86_64,
Torsten Lilge <=