Difference between revisions of "Octave"

From Coder Merlin
m (→‎Octave: editorial corrections)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Octave ==
== Octave ==
GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with MATLAB.
GNU Octave is a high-level programming language, primarily intended for numerical computations. Octave helps to solve linear and nonlinear problems numerically, and to perform other numerical experiments using a language that is mostly compatible with MATLAB.<ref>Gnu Octave. (2022, February, 10). In ''Wikipedia''. https://en.wikipedia.org/wiki/GNU_Octave</ref>


{{MerlinMultipageExperienceSubpages
|Pages=Preparation;Graphing;Sombrero;Histograms;Storage
}}


== Preparation ==
== References ==
In this exercise, you'll be generating graphic files by using Octave.  In order to view these files, you'll save them in a special directory called "~www" which must be created in your home directory.  The following instructions will instruct you on how to create this directory.
<references/>
{{Prepare WWW Directory}}
== Graphing ==
* Be sure to execute <code>graphics_toolkit("gnuplot")</code> prior to graphing
 
== Examples ==
=== 3-D Sombrero Plot ===
<syntaxhighlight lang="matlab">
tx = ty = linspace (-8, 8, 41)';
[xx, yy] = meshgrid (tx, ty);
r = sqrt (xx .^ 2 + yy .^ 2) + eps;
tz = sin (r) ./ r;
mesh (tx, ty, tz);
xlabel ("tx");
ylabel ("ty");
zlabel ("tz");
title ("3-D Sombrero plot");
</syntaxhighlight>

Latest revision as of 02:52, 3 April 2022

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Octave[edit]

GNU Octave is a high-level programming language, primarily intended for numerical computations. Octave helps to solve linear and nonlinear problems numerically, and to perform other numerical experiments using a language that is mostly compatible with MATLAB.[1]



References[edit]

  1. Gnu Octave. (2022, February, 10). In Wikipedia. https://en.wikipedia.org/wiki/GNU_Octave