How to convert a 2-D char to string?

6 次查看(过去 30 天)
i have a 2/5 char array that i want to convert to string. How please?

采纳的回答

Matt J
Matt J 2015-2-1
编辑:Matt J 2015-2-1
Is this what you mean?
>> C=['abcde';'fghij']
C =
abcde
fghij
>> reshape(C.',[],1).'
ans =
abcdefghij

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by