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

 
 

bug #63736: [octave forge] (control) Different variable names on function mktito

Submitter:  Luiz Antonio Maccari Junior <luiz>
Submitted:  Tue 31 Jan 2023 08:53:24 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Luiz Antonio Maccari Jr. Open/Closed:  * Closed
Release:  * 7.3.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 13 Jan 2024 05:54:50 PM UTC, comment #1: 

Fixed with commit https://github.com/gnu-octave/pkg-control/commit/7474a2092bfa0406a32eb5f38b668d41e4afcffd
The fix will be included in the next minor release of the package.

Torsten Lilge <ttl>
Group Member
Tue 31 Jan 2023 08:53:24 PM UTC, original submission:  

Hello,

I was using on Octave a Matlab toolbox which utilizes the function mktito and I had a compatibility problem because this function gives different variable names on Octave. See the example below:

The code is:


a = [0.5 0; 0 -0.5];
b = [1 0; 0 0;];
c = [5 0; 5 0];
d=0;

SYS = ss(a,b,c,d,0.1);         % convert to SS model

P = mktito(SYS,1,1)  % 2 measured outputs, 2 controlled inputs


On MATLAB I got this result:

P =
 
  A =
         x1    x2
   x1   0.5     0
   x2     0  -0.5
 
  B =
       u1  u2
   x1   1   0
   x2   0   0
 
  C =
       x1  x2
   y1   5   0
   y2   5   0
 
  D =
       u1  u2
   y1   0   0
   y2   0   0
 
Input groups:      
    Name    Channels
     U1        1   
     U2        2   
                   
Output groups:     
    Name    Channels
     Y1        1   
     Y2        2   
                   
Sample time: 0.1 seconds
Discrete-time state-space model.

However Octave gives:

P.a =
         x1    x2
   x1   0.5     0
   x2     0  -0.5

P.b =
       w1  u1
   x1   1   0
   x2   0   0

P.c =
       x1  x2
   z1   5   0
   v1   5   0

P.d =
       w1  u1
   z1   0   0
   v1   0   0

Input group 'W' = 1
Input group 'U' = 2
Output group 'Z' = 1
Output group 'V' = 2
Sampling time: 0.1 s
Discrete-time model.

As one can see Matlab gives U1,U2,Y1,Y2 and Octave gives W,U,Z,V.

I think that would be interesting for compatibility if both functions give the same  names.

Luiz Antonio Maccari Junior <luiz>

 

(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 luiz (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-13 ttl StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code