help-octave
[Top][All Lists]
Advanced

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

wrong results for d2c in control toolbox


From: Chris Eddington
Subject: wrong results for d2c in control toolbox
Date: Mon, 09 Feb 2004 01:38:04 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

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
-------------------------------------------------------------



reply via email to

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