[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48138] control package: impulse function scal
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #48138] control package: impulse function scales impulse response incorrectly |
Date: |
Sun, 5 Jun 2016 21:14:41 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Update of bug #48138 (project octave):
Item Group: Incorrect Result => Regression
Status: None => Confirmed
Operating System: Microsoft Windows => Any
Summary: Impulse function of the Control Package => control
package: impulse function scales impulse response incorrectly
_______________________________________________________
Follow-up Comment #4:
I rewrote the posted script (and quoted in a verbatim block) to make it
clearer what the computed parameters are:
t = (0:.1:30)';
NUM = 0.9375; DEN = [1 2 4];
sys = tf (NUM, DEN)
yi = impulse (sys, t);
yii = NUM ./ sqrt (3) .* exp (-t) .* sin (sqrt (3) .* t);
figure
plot (t, yi, t, yii)
title ("Impulse Response of LTI System")
I can also confirm that this works correctly in control version 2.8.5 but not
in 3.0.0.
With version 3.0.0, if I scale the impulse response by the sampling period, I
get something that more closely agrees with the correct result, especially as
dt is made smaller.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48138>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/