The pois-solv package

We can now gather the four functions cmat_1d, cmat_2d, vecmat_convert, and pois_fd into an Octave package. There are a few advantages of packing the functions together rather than just copying the individual m-files:

  • The files are archived into single standard file format.
  • You can install the package easily with the pkg command, load and unload the functions, and not be concerned with where the functions are located (that is, if they are in the Octave search path).
  • With the package, you can add any relevant information about the functionality.
  • You can upload the package to Octave-Forge.

There are a few things we need to do in order to package the functions properly.

Organizing files into the package directory

First you will need ...

Get GNU Octave now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.