bugGNU Octave - Bugs: bug #35245, tf2zp and zp2tf missing in...

 
 

bug #35245: tf2zp and zp2tf missing in control-2.2.3

Submitter:  None
Submitted:  Thu 05 Jan 2012 02:08:46 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Octave Forge Assigned to:  None
Originator Name:  Timothy Huber Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.4.3
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 06 Jan 2012 02:54:14 PM UTC, comment #4: 

I added the wrappers ss2tf, ss2zp, tf2ss, tf2zp, zp2ss and zp2tf to the signal package. Timothy is not the first guy who requested these functions. What about a release of signal-1.1.2?

In the meantime, the updated signal package is available from this link:
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/signal/?view=tar

Regards,
Lukas

Lukas Reichlin <paramaniac>
Thu 05 Jan 2012 03:16:04 PM UTC, comment #3: 

tf2zp, zp2tf and about a dozen of similar x2y commands are part of Matlab's Signal Processing Toolbox:
http://www.mathworks.ch/help/toolbox/signal/ref/f9-131178c.html

Therefore I won't add them to the Octave control package. If you need them, you can add wrappers like the one below to the Octave signal package:


function [z, p, k] = tf2zp (varargin)

  [z, p, k] = zpkdata (tf (varargin{:}));

endfunction


For some reasons, signal already requires control (>= 0.0.0) which means that no new dependency would be introduced.

Regards,
Lukas

Lukas Reichlin <paramaniac>
Thu 05 Jan 2012 02:41:11 PM UTC, comment #2: 

The function "bilinear" is part of the "signal" package. If you want to use the control package instead, you can do the following:


octave:1> sysc = tf ([1, 0], [1, 1.4e6])

Transfer function 'sysc' from input 'u1' to output ...

           s
 y1:  -----------
      s + 1.4e+06

Continuous-time model.
octave:2> sysd = c2d (sysc, 1e-6, "bilin")

Transfer function 'sysd' from input 'u1' to output ...

      0.5882 z - 0.5882
 y1:  -----------------
         z - 0.1765

Sampling time: 1e-06 s
Discrete-time model.
octave:3>


Lukas Reichlin <paramaniac>
Thu 05 Jan 2012 02:12:38 PM UTC, comment #1: 

This looks like a problem with an Octave Forge package, not a bug
in Octave.  The correct place to report this problem is the
Octave Forge mailing list, octave-dev@lists.sourceforge.net.

A copy of this update to the bug report is being sent to that
list so that they are aware of it.  Please follow up there.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Thu 05 Jan 2012 02:08:46 PM UTC, original submission:  

The functions tf2zp and zp2tf are missing in the package:
"control-2.2.3.tar.gz"

I found this when I tried to use the bilinear transformation

[ zb, za ] = bilinear( [ 1 0 ], [ 1 1.4e6 ], 1e-6 )

They were available in control-1.0.11

Thanks in advance,

Timothy

Anonymous

 

(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 paramaniac (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by jordigh
  • -email is unavailable- added by None (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-01-05 jordigh StatusNone Octave Forge
        Open/ClosedOpen Closed
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code