How to apply dec2bin to char array?
이전 댓글 표시
I have a data as char
a ='1234567';
dec2bin(a) gives
6×6 char array
'110001'
'110010'
'110011'
'110100'
'110101'
'110110'
but I want the result like dec2bin(123456)= '11110001001000000'
How to apply dec2bin to a char value to get a sinle out put ?
댓글 수: 1
a ='1234567';
b = dec2bin(str2double(a))
채택된 답변
추가 답변 (1개)
a ='1234567';
dec2bin(str2num(a))
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!