How do I convert a numerical array to a char array?

조회 수: 11 (최근 30일)
Kaitlyn Morgan
Kaitlyn Morgan 2018년 6월 16일
답변: Walter Roberson 2018년 6월 16일
Say I have a matrix
A = [ 0 0 0 0 0 0 0 1 ;
0 0 0 0 0 0 1 0 ]
How would I convert this to a character array such as
B = ['00000001';
'00000010]
I am looking for something that does the opposite of
A = B - '0';

답변 (1개)

Walter Roberson
Walter Roberson 2018년 6월 16일

카테고리

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