How to a='10101111' convert array b=[1,0,1,0,1,1,1,1]
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
a is char type
0 Commenti
Risposte (2)
Subhadeep Koley
il 18 Dic 2020
Modificato: Subhadeep Koley
il 18 Dic 2020
charArray = '10101111';
newCharArray = double((charArray == '1'));
0 Commenti
Vedere anche
Categorie
Scopri di più su Data Type Conversion in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!