stackexchange12
stackexchange12

Reputation: 652

How to Convert Vector to String in Matlab

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);

Upvotes: 3

Views: 12134

Answers (1)

lennon310
lennon310

Reputation: 12689

how about

 b = [1 2 4 3];
 b = num2str(b);

Upvotes: 6

Related Questions