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 Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Luiz Antonio Maccari Jr. Open/Closed:  * Open
Release:  * 7.3.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

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 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 project members can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.11