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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.