2%> Return the input scalar MATLAB
string as doubly quoted
string
3%> such that the first and last character of the output
string are
double-quotation
4%> marks
while escaping any instances of **
double quote** in the Fortran/MATLAB style,
5%> by duplicating every quotation mark within the
string.<br>
7%> \param[in] str : The input scalar MATLAB
string to be doubly quoted.<br>
10%> ``strQuoted`` : The output scalar MATLAB
string containing the doubly-quoted escaped input
string.<br>
15%> strQuoted = pm.str.quote(str)
20%> \include{lineno} example/str/
quote/main.m
22%> \include{lineno} example/str/
quote/main.out.m
27%> \JoshuaOsborne, May 21 2024, 4:40 AM, University of Texas at Arlington<br>
28%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
29%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
31 strQuoted =
"""" + strrep(str,
"""",
"""""") +
"""";
function quote(in str)
Return the input scalar MATLAB string as doubly quoted string such that the first and last character ...