https://github.com/geospace-code/matlab-stdlib
HDF5, NetCDF4, fileio, system functions that act as an unofficial "stdlib" for Matlab.
https://github.com/geospace-code/matlab-stdlib
hdf5 netcdf4
Last synced: 8 months ago
JSON representation
HDF5, NetCDF4, fileio, system functions that act as an unofficial "stdlib" for Matlab.
- Host: GitHub
- URL: https://github.com/geospace-code/matlab-stdlib
- Owner: geospace-code
- License: mit
- Created: 2020-06-21T03:55:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-02T19:09:59.000Z (10 months ago)
- Last Synced: 2025-04-12T04:44:14.610Z (9 months ago)
- Topics: hdf5, netcdf4
- Language: MATLAB
- Homepage: https://geospace-code.github.io/matlab-stdlib/
- Size: 908 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
- Citation: CITATION.cff
- Codemeta: codemeta.json
Awesome Lists containing this project
README
# Standard library for Matlab
[](https://zenodo.org/badge/latestdoi/273830124)
[](https://www.mathworks.com/matlabcentral/fileexchange/78673-stdlib-for-matlab)
[](https://github.com/geospace-code/matlab-stdlib/actions/workflows/ci.yml)
[](https://github.com/geospace-code/matlab-stdlib/actions/workflows/ci-nojvm.yml)
Matlab or
[GNU Octave](./Readme_octave.md)
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 R2019b is the minimum required due to use of
[arguments](https://www.mathworks.com/help/matlab/ref/arguments.html)
syntax.
URLs (e.g. https://, s3:// and similar) are treated as not existing.
Self-tests can be run from the matlab-stdlib/ directory:
```matlab
%% Matlab R2023a or newer
buildtool test
%% Matlab R2021a or newer
addpath .
runtests("test")
```
Functions requiring or optionally benefiting from MEX are indicated in the
[API Documentation](https://geospace-code.github.io/matlab-stdlib).
Build the optional high-performance
[MEX](https://www.mathworks.com/help/matlab/cpp-mex-file-applications.html)
functions from the Matlab prompt in Matlab R2023a or newer:
```matlab
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 type `clear functions` in Matlab.
## Java-based functions
Most Matlab-stdlib filesystem functions work without the
[Java interface](./Readme_java.md).
If Matlab was started without Java using
[-nojvm](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html),
most Matlab-stdlib functions still work.
This
[CI job](https://github.com/geospace-code/matlab-stdlib/actions/workflows/ci-nojvm.yml)
tests without Java.
## Acknowledgments
Stdlib for Matlab was partly funded by NASA NNH19ZDA001N-HDEE grant 80NSSC20K0176.