convert string to matrix

2 views (last 30 days)
Aseel H
Aseel H on 5 May 2012
how convert stream of bits to matrix for example A = ['01100101']; I want B = [0,1,1,0,0,1,0,1];

Accepted Answer

Walter Roberson
Walter Roberson on 5 May 2012
B = A - '0';

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!