How to Convert Vector to String in Matlab
11,082
how about
b = [1 2 4 3];
b = num2str(b);
Author by
stackexchange12
Updated on June 04, 2022Comments
-
stackexchange12 almost 2 years
I'm hoping to find a simple way of converting a vector of numbers to a string in matlab.
Lets say I have a vector b,
b[1 2 4 3];
is there something simple such as
b = vect2str(b);
-
gaborous about 7 yearsPerfect, it can also be combined with strcat to concatenate and expand a vector:
strcat(',', num2str([1:3]'))