help-octave
[Top][All Lists]
Advanced

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

Signal library problem


From: JORGE JONATHAN DIAZ PIÑA
Subject: Signal library problem
Date: Thu, 23 May 2019 06:13:26 +0000

hi!
i'm using your library in Octave and i have a problem in the function ss2tf, the value returned of the function should be a vectors and the size of this depend of the grade of the matrix, but the function returns a vectors who depend of te numbers diferents of zero.
if you don't understand me i put a example:

--this is mat:
A=[1 1 0; 1 -1 0; 0 0 -2];

B=[2; 1; 1];

C=[1 0 1];

D=[0];

---Using matlab the result is this:

>> [ num , den ] = ss2tf( A, B, C, D )

num =

     0     1     2     0


den =

     1     1    -2     0


---Using octave the result is:

[ num , den ] = ss2tf( A, B, C, D )
num =  1
den =

   1  -1


---------------
octave don't return the correct result and send a diferent size 


reply via email to

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