Standard library of functions for MATLAB
Git branch / commit: main dc764ebe 12-Dec-2025 19:33:35 +0000
Library Functions:
| Function | Description | Backends |
|---|---|---|
| checkout_license | checkout Matlab license | |
| strempty | is the char | string empty | |
| append | Concatenate strings or character arrays without removing trailing whitespace | |
| absolute | Determine absolute path | |
| allToolboxes | tell all the Matlab toolboxes known for this Matlab release | |
| auto_chunk_size | determine HDF5 / NetCDF4 chunk size | |
| canonical | Canonicalize path | |
| checkRAM | estimate if RAM will fit a new array | |
| cpu_arch | get the Operating System CPU architecture | |
| cpu_count | how many CPUs are available | |
| cpu_load | get total physical CPU load | java python sys |
| create_symlink | create symbolic link | python sys native dotnet |
| device | filesystem device index of path | java python sys |
| disk_available | disk available space (bytes) | java python sys dotnet |
| disk_capacity | disk total capacity (bytes) | java python sys dotnet |
| dotnet_api | major version integer .NET | |
| dotnet_home | give .NET RuntimeLocation | |
| dotnet_version | version string | |
| drop_slash | drop repeated and trailing slash | |
| exists | does path exist | |
| expanduser | expands tilde ~ into user home directory | |
| file_checksum | compute hash of file | java sys dotnet |
| file_size | size in bytes of file | |
| filename | file name of path | |
| filesystem_type | tell type of filesystem | java python sys dotnet |
| get_modtime | get path modification time | |
| get_owner | owner name of file or directory | java python sys dotnet |
| get_permissions | permissions of file or directory | |
| get_pid | process ID of Matlab session | |
| get_process_priority | get priority of the current Matlab session | python sys dotnet |
| get_shell | full path to currently running shell | |
| get_uid | tell UID (numeric) of current user | python dotnet perl |
| get_username | tell username of current user | java python sys dotnet |
| h4exists | check if object exists in HDF4 file | |
| h4size | get size (shape) of a HDF4 variable | |
| h4variables | get HDF4 dataset names | |
| h5create_group | create HDF5 group | |
| h5exists | check if object exists | |
| h5get_version | get version of HDF5 library as a string | |
| h5save | save data to HDF5 file | |
| h5size | get shape of HDF5 variable | |
| h5variables | get HDF5 dataset names | |
| handle2filename | Convert an integer file handle to a filename | |
| hard_link_count | get the number of hard links to a file | java python sys |
| has_dotnet | check if .NET is available | |
| has_java | detect if JVM is available | |
| has_parallel_toolbox | does the user have Parallel Computing Toolbox and the license available for it? | |
| has_perl | checks if Perl is available in the current environment. | |
| has_python | checks if Python is available in the current environment. | |
| homedir | get user home directory | |
| hostname | get hostname of local machine | java python sys dotnet |
| ini2struct | Parses .ini file | |
| inode | filesystem inode of path | java python sys |
| is_absolute | is path absolute | |
| is_admin | is the process run as root / admin | java python sys dotnet perl |
| is_char_device | is path a character device | python sys |
| is_cygwin | Detect if running under Cygwin | |
| is_dev_drive | is path on a Windows Dev Drive developer volume | python sys |
| is_exe | is file executable | |
| is_executable_binary | Check if a file is an executable binary by examining magic numbers | |
| is_file | Determine if path is a file | |
| is_folder | Determine if path is a folder | |
| is_hdf5 | is file an HDF5 file? | |
| is_matlab_online | check if running in MATLAB Online | |
| is_mex_fun | detect if a function is loaded as MEX or plain .m | |
| is_mount | is filepath a mount path | python sys |
| is_parallel_worker | being executed by Parallel Computing Toolbox? | |
| is_prefix | is prefix a prefix of path? | |
| is_readable | is file readable | |
| is_regular_file | check if path is a regular file | |
| is_removable | Check if a file path is on a removable drive | python sys |
| is_rosetta | on Apple Silicon via Rosetta | |
| is_subdir | is subdir a subdirectory of dir? | |
| is_symlink | is path a symbolic link | java python sys native dotnet |
| is_url | is true if the string is a URL. | |
| is_writable | is path writable | |
| is_wsl | detect if running under WSL | |
| isinteractive | tell if graphical desktop is being used | |
| isoctave | Detects if this is GNU Octave | |
| java_api | Java API version | |
| java_home | get the JAVA_HOME environment variable | |
| java_run | run process for Matlab only | |
| java_vendor | get vendor of Java Virtual Machine | |
| java_version | get version of Java Virtual Machine | |
| join | join two paths with posix file separator | |
| makedir | make directory and check for success | |
| matlab_bin_path | give binary paths relevant to Matlab Mex and Engine runs | |
| matlabOlderThan | compare Matlab release name only e.g. R2025a | |
| md5sum | compute MD5 hash of file | |
| nc_get_version | get NetCDF library version | |
| ncexists | check if variable exists in NetCDF4 file | |
| ncsave | save data to NetCDF4 file | |
| ncsize | get size (shape) of a NetCDF4 variable | |
| ncvariables | get NetCDF dataset names | |
| normalize | remove redundant elements of path | |
| null_file | get null file path | |
| os_version | Get operating system name and version. | java python sys dotnet |
| parent | parent directory of path | |
| perl_exe | get the location of the Perl executable used by Matlab | |
| perl_version | get the Perl version used by MATLAB | |
| platform_tell | Display information about the platform and environment | |
| posix | posix format of path with '/' separator | |
| proximate_to | relative path to base | |
| python_home | tell the home directory of Python install | |
| python_version | get the Python version used by MATLAB | |
| ram_free | get free physical RAM | java python sys |
| ram_total | get total physical RAM | java python sys dotnet |
| read_symlink | read symbolic link | java python sys native dotnet |
| relative_to | relative path to target from base | |
| remove | delete file or empty directory | |
| resolve | resolve path | |
| root | get root path | |
| root_dir | get root directory | |
| root_name | get root name | |
| samepath | is path the same | java python sys native perl |
| set_modtime | set modification time of path | java python sys |
| set_permissions | set path permissions | native legacy |
| sha256sum | compute sha256 hash of file | |
| stem | base file name without directory or suffix | |
| subprocess_run | run process | |
| suffix | last suffix of filename | |
| toolbox_used | list all Matlab toolboxes used by all functions in pkgPath | |
| touch | create file if not exists, else update modification time | |
| uptime | get system uptime in seconds | python sys dotnet |
| version_atleast | compare two string verions: major.minor.rev.patch | |
| which | find executable in fpath or env var PATH | |
| with_suffix | switch file extension | |
| xcode_version | on macOS, tell the Xcode Command Line Tools version |
Function counts:
- dotnet 16
- java 19
- perl 3
- python 26
- sys 26
- native 5
- legacy 1
- top_level 128