MATLAB: Convert 1×2 double to 1×1 string

data conversiondouble2strMATLABnum2strstrstring

I have illustrated my question in the following images.
Data I have – ,
Data I require – ,
How do I convert 1×2 double into 1×1 string?
Thanks in advance

Best Answer

>> string(sprintf('[%d,%d]',s))
ans =
"[3,7]"
>>
or, with features built into the new string class that mimic VB in many ways--
>> "["+s(1)+","+s(2)+"]"
ans =
"[3,7]"
I think the latter is more of a pain to write than the former, but to each his own...