Am 16.09.20 um 21:03 schrieb Dmitri A. Sergatskov:
> ...
> I see that there are three different __zero__:
> control-3.2.0/@frd/__zero__.m
> control-3.2.0/@ss/__zero__.m
> control-3.2.0/@tf/__zero__.m
Can you share the output from
$ find control-3.2.0/ -name "*zero*"
on my install:
control-3.2.0/@ss/__zero__.m
control-3.2.0/@frd/__zero__.m
control-3.2.0/@tf/__zero__.m
control-3.2.0/@lti/zero.m
control-3.2.0/__remove_trailing_zeros__.m
control-3.2.0/@tfpoly/__remove_leading_zeros__.m
control-3.2.0/@tfpoly/is_zero.m
control-3.2.0/tfpolyzeros.m
Is it possible that you have another zero function lingering around from
an older control version?
find control-3.2.0/ -name "*zero*"
control-3.2.0/@frd/__zero__.m
control-3.2.0/__remove_trailing_zeros__.m
control-3.2.0/@ss/__zero__.m
control-3.2.0/tfpolyzeros.m
control-3.2.0/@tf/__zero__.m
control-3.2.0/@lti/zero.m
control-3.2.0/@tfpoly/__remove_leading_zeros__.m
control-3.2.0/@tfpoly/is_zero.m
-- Andy
Dmitri.
--
I also added disp("Hi from @tf") to the __zero__.m in @tf/ and disp("Hi from @ss") to the __zero__.m in @ss/
Now:
octave:5> demo impulse
impulse example 1:
clf;
s = tf('s');
g = 1/(2*s^2+3*s+4);
impulse(g);
title ("Impulse response of a PT2 transfer function");
Hi from @tf!
Press <enter> to continue:
impulse example 2:
clf;
s = tf('s');
g = 1/(2*s^2+3*s+4);
h = c2d(g,0.1);
impulse(h);
title ("Impulse response of a discretized PT2 transfer function");
octave:6>
Dmitri.
--