cc_staff
653
edits
Line 4: | Line 4: | ||
== Running Octave code == | == Running Octave code == | ||
Consider the following example code: | Consider the following example code: | ||
{{File | {{File | ||
|name=octave_2d_plot.m | |name=octave_2d_plot.m | ||
Line 34: | Line 33: | ||
octave --no-gui octave_2d_plot.m | octave --no-gui octave_2d_plot.m | ||
}} | }} | ||
Note that Octave relies on the Gnuplot package to generate plots. | |||
=== Running MATLAB code === | === Running MATLAB code === | ||
Octave can often be used as a drop-in replacement for running MATLAB scripts, like the <code>cosplot.m</code> example on our [[MATLAB#Running_a_MATLAB_code|MATLAB]] page: | Octave can often be used as a drop-in replacement for running MATLAB scripts, like the <code>cosplot.m</code> example on our [[MATLAB#Running_a_MATLAB_code|MATLAB]] page: | ||
{{File | {{File | ||
|name=octave_job_1.sh | |name=octave_job_1.sh | ||
Line 51: | Line 51: | ||
octave --no-gui --traditional --eval "cosplot" | octave --no-gui --traditional --eval "cosplot" | ||
}} | }} | ||
== Further reading == | |||
* [https://octave.org/ GNU Octave Homepage] | |||
* [https://docs.octave.org/v5.2.0/ Documentation for GNU Octave v5.2.0] (available in StdEnv/2020) | |||
* [https://docs.octave.org/v4.2.2/ Documentation for GNU Octave v4.2.2] (available in StdEnv/2018.3) |