How to a='10101111' convert array b=[1,0,1,0,1,1,1,1]
1 回表示 (過去 30 日間)
古いコメントを表示
a is char type
0 件のコメント
回答 (2 件)
Subhadeep Koley
2020 年 12 月 18 日
編集済み: Subhadeep Koley
2020 年 12 月 18 日
charArray = '10101111';
newCharArray = double((charArray == '1'));
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!