Cookbook: Difference between revisions

Jump to navigation Jump to search
823 bytes added ,  18 March 2016
→‎Programs and Libraries: how to find Octave configuration options
(→‎Plotting: remove section with a single recipe which is a single function call)
(→‎Programs and Libraries: how to find Octave configuration options)
Line 1: Line 1:
An Octave cookbook. Each entry should go in a separate section and have the following subsection: problem, solution, discussion and maybe a see also.
An Octave cookbook. Each entry should go in a separate section and have the following subsection: problem, solution, discussion and maybe a see also.
== Programs, Libraries, and Packages ==
Recipes for developers of Octave programs and libraries.  The type of stuff
an Octave programmer should be aware when writing code for others.
=== Find Octave configuration ===
Octave can be built with many configurations so programs may end up running
in a machine without features they need.  Developers should never expect an
Octave installation to have all features.  And programs should identify if
the required features are available.
This is a list of possible tests to check for features:
    ## support for 64 bit indexing
    sizemax () > intmax ("int32")
    ## built with support for java
    usejava ("jvm")
    ## support for image IO
    try
      [~] = imformats ();
      image_io_support = true;
    catch
      image_io_support = false;
    end_try_catch


== Structures ==
== Structures ==

Navigation menu