Dear Octave Community

I'm using Octave.app 3.2.3 on MacOSX 10.6.1 and I noticed a really  
strange behaviour of Octave/my scripts: When executing the commands at  
the end of this mail, instance sysc is partially changed where it  
should stay the same. Am I doing something wrong or is it a nasty bug  
in Octave?

Thanks in advance for every help!

Regards,
Lukas

BTW: The script needs control-oo:
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/extra/control-oo.tar.gz?view=tar


clear all;
close all;
clc;

% script needs control-oo installed, not the "legacy" control package
s = tf ('s');  % this is a simple control-oo-only feature

sysc = ss (-1, 1, 1, 0);  % create a simple, continuous-time model

sysc  % everything is fine here

sysd = c2d (sysc, 2)  % now convert to discrete-time and save as sysd

sysc  % sysc should stay unaltered/continuous-time, but it is discrete- 
time now!

% Note that matrices a and b are unaltered in sysc, only sampling time  
changed

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to