How i can convert binary elements of cell into decimal elements and store the results in array?

1 回表示 (過去 30 日間)
Dear Matlab Community,
i want to convert a binary elements of the cell into decimal elements and store the results in array
MB =
1×10 cell array
'0101' '0011' '0111' '0100' '0110' '0101' '0110' '0111' '0110' '1111'

採用された回答

Voss
Voss 2022 年 11 月 23 日
MB = { '0101' '0011' '0111' '0100' '0110' '0101' '0110' '0111' '0110' '1111'};
D = bin2dec(MB)
D = 10×1
5 3 7 4 6 5 6 7 6 15
  2 件のコメント
Radhwan Jawad
Radhwan Jawad 2022 年 11 月 24 日
Thank you so much
The code is very effective
Voss
Voss 2022 年 11 月 24 日
編集済み: Voss 2022 年 11 月 25 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by