help-octave
[Top][All Lists]
Advanced

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

Re: Trouble installing control toolbox


From: Michael Noone
Subject: Re: Trouble installing control toolbox
Date: Thu, 13 Dec 2012 17:22:05 -0800

Hi Alexander - we're getting somewhere now! I installed gnuplot. However, the graph I'm getting is rather ugly... I tried switching to fltk and it did not change the output. Either way, I get an all text output. I used octave with the controls toolbox a few years ago and I remember getting nice looking graphs that popped up in an external window - do you have any idea how to set this up?

See below:

octave:1> pkg load control
octave:2> a = tf(1, [1 2 3])

Transfer function 'a' from input 'u1' to output ...

            1
 y1:  -------------
      s^2 + 2 s + 3

Continuous-time model.
octave:3> bode(a)
+-------------------------------Bode Diagram of a------------------------------+
|    Magnitude [dB]                                                            |
|     -10 ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++       |
|     -20 ++..................+.....+++++++........+..................++       |
|     -30 ++..............................++++++......................++       |
|     -40 ++...................................+++++++................++       |
|     -50 ++.........................................+++++++..........++       |
|     -60 ++...............................................++++++.....++       |
|     -70 ++..................+....................+............++++++++       |
|     -80 +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2      |
|        10                  10                   10                  10       |
|   Phase [deg]                                                                |
|       0 ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++       |
|     -20 ++.....++++++++++++++....................+..................++       |
|     -60 ++.................+++++....................................++       |
|     -80 ++.....................+++..................................++       |
|    -100 ++.......................++++...............................++       |
|    -140 ++..........................+++++...........................++       |
|    -160 ++..................+...........+++++++++++++++.............++       |
|    -180 +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2      |
|        10                  10                   10                  10       |
+------------------------------------------------------------------------------+
octave:4> graphics_toolkit
ans = gnuplot
octave:5> graphics_toolkit('fltk')
octave:6> bode(a)
+-------------------------------Bode Diagram of a------------------------------+
|    Magnitude [dB]                                                            |
|     -10 ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++       |
|     -20 ++..................+.....+++++++........+..................++       |
|     -30 ++..............................++++++......................++       |
|     -40 ++...................................+++++++................++       |
|     -50 ++.........................................+++++++..........++       |
|     -60 ++...............................................++++++.....++       |
|     -70 ++..................+....................+............++++++++       |
|     -80 +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2      |
|        10                  10                   10                  10       |
|   Phase [deg]                                                                |
|       0 ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++       |
|     -20 ++.....++++++++++++++....................+..................++       |
|     -60 ++.................+++++....................................++       |
|     -80 ++.....................+++..................................++       |
|    -100 ++.......................++++...............................++       |
|    -140 ++..........................+++++...........................++       |
|    -160 ++..................+...........+++++++++++++++.............++       |
|    -180 +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2      |
|        10                  10                   10                  10       |
+------------------------------------------------------------------------------+



On Thu, Dec 13, 2012 at 4:44 PM, Alexander Hansen <address@hidden> wrote:
graphics_toolkit


reply via email to

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