Matlab 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 by numerous independent projects.
The self-tests can be run from the top matlab-stdlib/ directory.
Matlab R2022b and newer:
buildtool testMatlab R2017a and newer:
test_mainFor the functions compatible with GNU Octave:
addpath(pwd)
oruntests('+stdlib/')Our functions that aren't possible in native Matlab code are implemented using Matlab's no-compile external language interfaces. The API listing "backend" column tells which functions have selectable backend implementations. By default, when the "backend" is not specified to a function having selectable backend, the algorithm searches for the first available backend and uses that.
- .NET
- Windows: all supported Matlab releases
- Linux / macOS: R2024b and newer
- Java: all supported Matlab releases
- Perl: Matlab R2018a and newer. This uses a system() call to Perl.
- Python: Matlab R2022b and newer.
stdlib.has_pythonchecks that the Python version set bypyenv()is compatible with the Matlab release. - System shell calls: all supported Matlab releases. As a backup when the platform doesn't have the primary (faster) methods available, the system shell can be called for some functions.
Stdlib for Matlab was partly funded by NASA NNH19ZDA001N-HDEE grant 80NSSC20K0176.