help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave Control package bug ?


From: Dmitri A. Sergatskov
Subject: Re: Octave Control package bug ?
Date: Thu, 17 Sep 2020 07:48:47 -0400



On Thu, Sep 17, 2020 at 7:28 AM Dmitri A. Sergatskov <dasergatskov@gmail.com> wrote:


On Thu, Sep 17, 2020 at 2:37 AM Andreas Weber <octave@josoansi.de> wrote:
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.
--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]