bugGNU Octave - Bugs: bug #47900, [octave forge] (control) does not...

 
 

bug #47900: [octave forge] (control) does not fully support complex SYS objects

Submitter:  Gene <gpetilli>
Submitted:  Wed 11 May 2016 08:10:44 PM UTC
   
 
Category:  Octave Package Severity:  1 - Wish
Priority:  3 - Low Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Gene Petilli Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Apr 2023 05:07:26 PM UTC, comment #5: 

The case in comment #4 has a wrong syntax as the variable s is used in the coefficient vector (and was set to j*w?). The original filter design procedure given in the link works as expected.

The case described in the original post is possible in the current version 3.5.2. However, the tf-form of the resulting system, tf(myss) is incorrect and "drops" the imaginary parts of the entries in the system matrix A.


Torsten Lilge <ttl>
Group Member
Mon 31 Oct 2016 08:43:48 PM UTC, comment #4: 

Looks like I also need this feature.

I'm trying to design an second order Sallen-Key bandpass filter from [url=http://electronics.stackexchange.com/questions/215057/2nd-order-sallen-key-bandpass-filter-design-in-matlab this post], slightly modified version:


s = j*w;
B=[G*R*C*w*s 0 ];
A=[(R^2)*(C^2)*(w^2)*(s^2) R*C*w*(3-G)*s 1];
sys=tf(B,A);


When trying to run this script:


   error: tf: numerator 'num' must be a real-valued, non-empty vector or a cell of such vectors


I would be very appreciated for any info related to status of implementing of this functionality. Thanks!

Anonymous
Tue 07 Jun 2016 04:33:43 PM UTC, comment #3: 

Ok, status set to confirmed.

Mike Miller <mtmiller>
Group Member
Tue 07 Jun 2016 01:43:31 PM UTC, comment #2: 

Any progress on scheduling adding complex functionality to the control toolbox?  Complex SYS math is a critical capability of Matlab that Octave does not support.  At least tag the bug as confirmed since the code reports it as not yet supported.

Gene <gpetilli>
Thu 12 May 2016 08:03:37 PM UTC, comment #1: 

@Mike  How hard would it be to add this. I also need it.
Doug

Doug Stewart <dastew>
Wed 11 May 2016 08:10:44 PM UTC, original submission:  

Is there a schedule for complex number support in control pkg?  The following works in both Matlab and Scilab but errors in Octave:

a=[1+i,0;0,1+i]
b=[.1;.2]
c=[0,.3]
d=[1]
myss=ss(a,b,c,d)

structures function with complex arrays, so it is unclear why the restriction.

Gene <gpetilli>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by gpetilli (Submitted the item)
  • -email is unavailable- added by gpetilli
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-09 ttl Summary[octave forge] (control) does not support complex SYS objects [octave forge] (control) does not fully support complex SYS objects
    2019-02-26 mtmiller Carbon-CopyRemoved 80942 -
    2019-02-26 mtmiller Priority5 - Normal 3 - Low
        Release4.0.2 dev
    2017-08-13 jwe Summarycontrol pkg: does not support complex SYS objects [octave forge] (control) does not support complex SYS objects
    2016-06-07 mtmiller Severity3 - Normal 1 - Wish
    2016-06-07 mtmiller StatusNone Confirmed
    2016-05-11 gpetilli Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code