How to decode a cell type variable to a decimal?

2 ビュー (過去 30 日間)
Nick
Nick 2021 年 5 月 5 日
回答済み: Tala 2021 年 5 月 5 日
I want to implement this function:
power =3+ sqrt(das.*das);
But das is cell type (with binary digits) so when I run the "power" function I get an error:
Undefined operator '.*' for input arguments of type 'cell'.
So I want to decode the cell type variable das to a decimal so that the function can run properly. How do I do that?

回答 (1 件)

Tala
Tala 2021 年 5 月 5 日
Das= cell2mat(das);
power =3+ sqrt(Das.*Das);

カテゴリ

Help Center および File ExchangeTime Series についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by