[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
transfer funtion in script
From: |
Nugget_Mon |
Subject: |
transfer funtion in script |
Date: |
Sun, 17 Aug 2008 10:21:23 -0700 (PDT) |
Hello,
I am trying to write a controls circuit script. When I call the script form
the terminal, I get an error saying that the number of poles is less than
the number of zeros. However, if I type the transfer function in from the
command line, Octave accepts it. Is there something I am missing? I have not
done anything other that to define the functions.
octave:9> test1
error: # of poles (0) < # of zeros (1)
error: evaluating if command near line 79, column 3
error: called from `tf' in file
`/usr/share/octave/3.0.0/m/control/system/tf.m'
error: evaluating assignment expression near line 6, column 5
error: near line 6 of file `~/octave/test1.m'
The script is:
Gp=tf([1],[1,0.5,4],0,"plant_input","plant_output");
Gc_1=tf([21],[1],0,"controller_input","controller_output");
Gc_2=tf([8,21],[1],0,"controller_input","controller_output");
I am using:
GNU Octave, version 3.0.0 "x86_64-pc-linux-gnu"
GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9)
of 2008-05-02 on king, modified by Ubuntu
Ubuntu 8.04
Thanks,
-Mon
--
View this message in context:
http://www.nabble.com/transfer-funtion-in-script-tp19021569p19021569.html
Sent from the Octave - General mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- transfer funtion in script,
Nugget_Mon <=