How to decode a cell type variable to a decimal?

조회 수: 1 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by