Azzera filtri
Azzera filtri

How to decode a cell type variable to a decimal?

1 visualizzazione (ultimi 30 giorni)
Nick
Nick il 5 Mag 2021
Risposto: Tala il 5 Mag 2021
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?

Risposte (1)

Tala
Tala il 5 Mag 2021
Das= cell2mat(das);
power =3+ sqrt(Das.*Das);

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Prodotti


Release

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by