Octave/Graphing

From Coder Merlin
< Octave
Revision as of 02:57, 3 April 2022 by Jeff-strong (talk | contribs) (Editorial review and minor corrections)
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Graphing[edit]

To start Octave, type 'octave' in the shell. It's easiest to perform this in your www directory so the files you create will be saved there.

liang-xue@codermerlin:~$ cd ~/www

liang-xue@codermerlin:~$ octave

You'll know you're in Octave when you see the Octave prompt.

octave:1> 

To enable graphics plotting, execute the following command:

octave:1> graphics_toolkit("gnuplot")

We'll begin with a 3-D example to demonstrate the power of Octave and how easy it is to create complex graphs.