2%> Return a vector of real values by splitting the
3%> input ``str``
string by the specified input ``sep``.<br>
6%> This function is primarily used
for splitting a
7%>
string into a
double vector of real numbers.<br>
9%> \param[in] str : The input scalar MATLAB
string containing from
which the numbers must be retrieved
10%> such as software
version corresponding to major, minor, and patch versions.<br>
11%> \param[in] sep : The input scalar MATLAB
string containing a
string
12%> to be used the separator in splitting.<br>
15%> ``real`` : The output MATLAB vector of size ``nsep + 1`` containing
16%> the numbers retrieved from the input
version string, where ``nsep``
17%> represents the number of input ``sep`` found in the input
string.<br>
18%> If the specified input ``sep`` is empty ``[]``, the
default value is used.<br>
19%> (**optional**,
default = ``
"."``)
24%> real = pm.str.split2real(str)
25%> real = pm.str.split2real(str, [])
26%> real = pm.str.split2real(str, sep)
33%> \include{lineno} example/str/
split2real/main.m
35%> \include{lineno} example/str/
split2real/main.out.m
38%> \JoshuaOsborne, May 21 2024, 4:41 AM, University of Texas at Arlington<br>
39%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
40%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
48 real = str2double(
string(strsplit(str, sep)));
function version(in silent)
Return a scalar MATLAB string containing the latest available ParaMonte MATLAB version newer than the...
function split2real(in str, in sep)
Return a vector of real values by splitting the input str string by the specified input sep.
function which(in vendor)
Return the a MATLAB string containing the path to the first mpiexec executable binary found in system...