O'Reilly logo

GNU Octave by Jesper Schmidt Hansen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required