MATLAB Answers

0

How to convert a 2-D char to string?

Asked by bh dhouha on 1 Feb 2015
Latest activity Edited by Matt J
on 1 Feb 2015
i have a 2/5 char array that i want to convert to string. How please?

  0 Comments

Sign in to comment.

1 Answer

Answer by Matt J
on 1 Feb 2015
Edited by Matt J
on 1 Feb 2015
 Accepted Answer

Is this what you mean?
>> C=['abcde';'fghij']
C =
abcde
fghij
>> reshape(C.',[],1).'
ans =
abcdefghij

  0 Comments

Sign in to comment.