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!