octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63736] [octave forge] (control) Different var


From: Luiz Antonio Maccari Junior
Subject: [Octave-bug-tracker] [bug #63736] [octave forge] (control) Different variable names on function mktito
Date: Tue, 31 Jan 2023 15:53:26 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63736>

                 Summary:  [octave forge] (control) Different variable names
on function mktito 
                 Project: GNU Octave
               Submitter: luiz
               Submitted: ter 31 jan 2023 20:53:24
                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.
        Originator Email: 
             Open/Closed: Open
                 Release: 7.3.0
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: ter 31 jan 2023 20:53:24       By: Luiz Antonio Maccari Junior <luiz>
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.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63736>

_______________________________________________
Mensagem enviada pelo Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]