bugGNU Octave - Bugs: bug #42082, Control package function...

 
 

bug #42082: Control package function "series" reports error

Submitter:  Laurence Shaw <lrshaw>
Submitted:  Wed 09 Apr 2014 06:40:59 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 29 Apr 2014 03:30:26 PM UTC, comment #1: 

Thanks for your report. I've pushed two changesets which solve the problem:

https://bitbucket.org/paramaniac/control/commits/all

Lukas Reichlin <paramaniac>
Wed 09 Apr 2014 06:40:59 PM UTC, original submission:  

error: lti: mtimes: system dimensions incompatible: (1x1) * (4x2)
error: called from:
error:   C:\Software\Octave-3.6.4\share\octave\packages\control-2.4.2\@lti\mtime
s.m at line 36, column 5
error:   C:\Software\Octave-3.6.4\share\octave\packages\control-2.4.2\@lti\serie
s.m at line 61, column 9


Num1= [1];den1=[1,1];lowpass=tf(Num1,den1)

octave-3.6.4.exe:16> lowpass

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

        1
 y1:  -----
      s + 1
sys= ss(A,B,C,D)

octave-3.6.4.exe:18> cascade=series(sys,lowpass)
error: lti: mtimes: system dimensions incompatible: (1x1) * (4x2)
error: called from:
error:   C:\Software\Octave-3.6.4\share\octave\packages\control-2.4.2\@lti\mtime
s.m at line 36, column 5
error:   C:\Software\Octave-3.6.4\share\octave\packages\control-2.4.2\@lti\serie
s.m at line 61, column 9
octave-3.6.4.exe:18>

A =

  -0.08680   0.03908   0.00000  -1.00000
   0.00000   0.00000   1.00000   0.00000
  -4.41000   0.00000  -1.18100   0.33400
   2.14000   0.00000  -0.02040  -0.22800

octave-3.6.4.exe:12> B
B =

   0.00000   0.02220
   0.00000   0.00000
   2.11000   0.54900
  -0.06520  -1.11640

octave-3.6.4.exe:13> C
C =

Diagonal Matrix

   1   0   0   0
   0   1   0   0
   0   0   1   0
   0   0   0   1

octave-3.6.4.exe:14> D
D =

   0   0
   0   0
   0   0
   0   0


Laurence Shaw <lrshaw>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #31146:  octave error.doc added by lrshaw (24KiB - application/msword - Multiple inputs should cause this Octave only situation)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by paramaniac (Posted a comment)
  • -email is unavailable- added by lrshaw (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
    2015-05-31 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
    2014-04-09 lrshaw Attached File- Added octave error.doc, #31146

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code