2%> Return a scalar MATLAB
string containing the
5%> \param[in] type : The input scalar MATLAB
string that can be either:
7%> <li> the
string ``
"year"``, implying that the MATLAB
release year must be returned.<br>
8%> <li> the
string ``
"season"`` or ``
"minor"``, implying that the MATLAB
release season must be returned.<br>
10%> (**optional**.
default = ``
""`` implying the full
version.)
13%> ``matlabRelease`` : The output scalar MATLAB
string containing the
19%> matlabRelease = pm.matlab.release()
20%> matlabRelease = pm.matlab.release(type)
25%> \include{lineno} example/matlab/
release/main.m
27%> \include{lineno} example/matlab/
release/main.out.m
32%> \JoshuaOsborne, May 21 2024, 11:19 PM, University of Texas at Arlington<br>
33%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
34%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
39 % WARNING: Do NOT convert the input
char '-release' to
string or the output will be wrong.
40 matlabRelease =
version(
'-release');
41 if string(type) ==
"year"
42 matlabRelease = matlabRelease(1:4);
43 elseif string(type) ==
"season" || string(type) ==
"minor"
44 matlabRelease = matlabRelease(5:5);
48 error(
"Invalid input value for the argument ``type`` of getMatlabRelease().");
50 matlabRelease = string(matlabRelease);
function version(in silent)
Return a scalar MATLAB string containing the latest available ParaMonte MATLAB version newer than the...
function release(in type)
Return a scalar MATLAB string containing the MATLAB release version, year, or season as requested.