octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #63393] [octave forge] (control) Bode plot pro


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #63393] [octave forge] (control) Bode plot problem. Different results between MATLAB and Octave.
Date: Thu, 2 Feb 2023 23:23:54 -0500 (EST)

Follow-up Comment #17, bug #63393 (project octave):

I made the following change in @tf/__freqresp__.m :



36d35
< 
38c37,44
<     H = polyval (num, s) ./ polyval (den, s);
---
>     Hnum0 = polyval (num, s);
>     [num1,~,mu] = polyfit(s, Hnum0, length(num));
>     Hnum1 = polyval (num1, s, [], mu);
>     Hden0 = polyval (den, s);
>     [den1,~,mu] = polyfit(s, Hden0, length(den));
>     Hden1 = polyval (den1, s, [], mu);
> 
>     H = Hnum1 ./ Hden1 ;



(and also compiled octave and control package with AVX instructions instead of
default sse -- perhaps this is important too) and the result is attached.
Still not perfect, but looks better.

Dmitri.
-- 


(file #54304)

    _______________________________________________________

Additional Item Attachment:

File name: das_control_mods_2023-02-02.png Size:41 KB
   
<https://file.savannah.gnu.org/file/das_control_mods_2023-02-02.png?file_id=54304>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63393>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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