How to a='10101111' convert array b=[1,0,1,0,1,1,1,1]
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
a is char type
0 Kommentare
Antworten (2)
Subhadeep Koley
am 18 Dez. 2020
Bearbeitet: Subhadeep Koley
am 18 Dez. 2020
charArray = '10101111';
newCharArray = double((charArray == '1'));
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!