convert string to matrix

11 visualizzazioni (ultimi 30 giorni)
Aseel H
Aseel H il 5 Mag 2012
how convert stream of bits to matrix for example A = ['01100101']; I want B = [0,1,1,0,0,1,0,1];

Risposta accettata

Walter Roberson
Walter Roberson il 5 Mag 2012
B = A - '0';

Più risposte (0)

Categorie

Scopri di più su Data Types 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!

Translated by