From help-octave-request at bevo dot che dot wisc dot edu Mon Feb 9 03:44:23 2004 Subject: wrong results for d2c in control toolbox From: Chris Eddington To: octave-help Date: Mon, 09 Feb 2004 01:38:04 -0800 Hi, I'm comparing the d2c and c2d functions in the control toolbox to some matlab examples in a textbook. The following commands: sysd = tf2sys([0 -2 1],[1 -2 1],1); sysc = d2c(sysd,1e-24); syscd = c2d(sysc,1e-24); [numd dend] = sys2tf(sysd) [numc denc] = sys2tf(sysc) [numcd, dencd] = sys2tf(syscd) should return [numc,denc] = [0 -1.5 -1] / [1 0 0] and numcd = numd and dencd = dend. Instead I get numc = 0 -1.45 -0.6244 and denc = 1 -0.27 0.08. and numcd , dencd do not match original. Anyone get this to work correctly or any ideas what might be wrong? Thks, Chris ------------------------------------------------------------- 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 -------------------------------------------------------------