From bug-request at octave dot org Wed Sep 15 02:23:32 2004 Subject: Octave Bug From: Gabriele Pannocchia To: B J Cc: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 15 Sep 2004 02:20:28 -0500 Hi, This is not an Octave bug. As far as I know, tf2sys(num,den) is implemented for scalar systems only. Therefore (num,den) must be vectors of coefficients. In your example, "a" is matrix and "b" is a vector. Cheers, Gabriele PS. Currently, the use of tf2sys is depracated. tf() is the current function to use. > I just tried running an example from the Octave > control systems page and it crashed. The following is > what I had: > > octave:1> a = [1 -2; -1.1 -2.1]; > octave:2> b = [1; 2; 1]; > octave:3> sys = tf2sys(a, b) > error: num (2x2) and den (3x1) must be vectors > error: evaluating if command near line 69, column 3 > error: called from `tf2sys' in file > `/sw/share/octave/2.1.53/m/control/system/tf2sys.m' > error: evaluating assignment expression near line 3, > column 5 > > I've tried numerous other examples from that same > section and had similar results. > > I'm using Octave 2.1.53 for Darwin, which is the > current stable version on Fink. > > Please advise. Thanks. > > B. M. Jatzeck > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > > > > ------------------------------------------------------------- > Octave is freely available under the terms of the GNU GPL. > > Octave's home on the web: http://www.octave.org > How to fund new projects: http://www.octave.org/funding.html > Subscription information: http://www.octave.org/archive.html > ------------------------------------------------------------- > > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------