How to a='10101111' convert array b=[1,0,1,0,1,1,1,1]

Risposte (2)

Subhadeep Koley
Subhadeep Koley il 18 Dic 2020
Modificato: Subhadeep Koley il 18 Dic 2020
charArray = '10101111';
newCharArray = double((charArray == '1'));

Categorie

Scopri di più su Powertrain Blockset in Centro assistenza e File Exchange

Tag

Richiesto:

il 18 Dic 2020

Commentato:

il 18 Dic 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by