FUNCTION REFERENCE
version
Return release text scripts can parse. This is not the MatRust product name.
Return release text scripts can parse. This is not the MatRust product name.
Syntax
v = versionSyntax
r = version('-release')Syntax
d = version('-date')Syntax
s = version('-description')With no arguments, returns the character vector '24.2.0.0 (R2024b)'. Scripts read the release name inside the parentheses. That text is the claimed R2024b compatibility target. It does not name an installed MATLAB product, and it is not the MatRust package version. -release returns '2024b'. -date returns 'September 12, 2024'. -description returns an empty character vector, the documented result for a general release that has no update.
Example
version % 24.2.0.0 (R2024b)Example
isempty(version('-description')) % 1Differences from MATLAB: The build field is zero rather than a MathWorks build number, and there is no update text. Product identity stays on ver and on matrust --version / -V. Unknown options still error.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.