Skip to content

HDF5, NetCDF4, fileio, system functions that act as an unofficial "stdlib" for Matlab.

License

Notifications You must be signed in to change notification settings

geospace-code/matlab-stdlib

Repository files navigation

Standard library for Matlab

DOI View stdlib for Matlab on File Exchange ci ci-nojvm

Matlab or GNU Octave users coming from other languages will benefit from the functionality contained within this user-developed, unofficial "stdlib" standard library of functions. These system, filesystem, and HDF5 / HDF4 / NetCDF functions are used across numerous projects.

Matlab ≥ R2022a is required to run the self-test suite. Matlab R2019b is the minimum required due to use of arguments syntax. URLs (e.g. https://, s3:// and similar) are treated as not existing.

Self-tests can be run from that matlab-stdlib/ directory:

buildtool test

Functions requiring or optionally benefiting from MEX are indicated in the API Documentation.

To build the optional high-performance MEX functions from the Matlab prompt:

buildtool mex

If just building MEX functions for the first time, to ensure the MEX functions are used instead of the plain Matlab script, one-time do a clear all in Matlab.

Java-based functions

Most Matlab-stdlib filesystem functions work without the Java interface. If Matlab was started without Java using -nojvm, most Matlab-stdlib functions still work. This CI job tests without Java.

Acknowledgments

Stdlib for Matlab was partly funded by NASA NNH19ZDA001N-HDEE grant 80NSSC20K0176.