Convert cell to matrix
古いコメントを表示
Hello, i have 1x3 cell
'00000000' '00000010' '00000011'
how do i convert it into matrix form to be like this?
0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 1 1
Thank you
採用された回答
その他の回答 (1 件)
Walter Roberson
2022 年 10 月 16 日
編集済み: Walter Roberson
2022 年 10 月 16 日
C = {'00000000', '00000010', '00000011'};
E = char(C) - '0'
カテゴリ
ヘルプ センター および File Exchange で Psychology についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!