How to convert a 2-D char to string?

조회 수: 2 (최근 30일)
bh dhouha
bh dhouha 2015년 2월 1일
편집: Matt J 2015년 2월 1일
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에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by