Signal library problem Classic List Threaded 4 messages Open this post in threaded view
|

Signal library problem

 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=; ---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
Open this post in threaded view
|

Re: Signal library problem

 On Thu, May 23, 2019 at 8:18 AM JORGE JONATHAN DIAZ PIÑA <[hidden email]> wrote: > > 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=; > > ---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 > > I cannot reproduce this problem. What is your octave version? OS ? signal package version? control package version? Regards, Dmitri. --
 On Thu, May 23, 2019 at 13:18:18 -0400, Nicholas Jankowski wrote: > other than the extra zero in the numerator (is that a significant > compatibility bug?) these answers seem equivalent. That compatibility bug is https://savannah.gnu.org/bugs/?43947-- mike signature.asc (849 bytes) Download Attachment