Using cell array to define double

조회 수: 1 (최근 30일)
Luigi
Luigi 2024년 5월 24일
댓글: Stephen23 2024년 5월 24일
Normally I create a 1x1 double as follows:
mydouble=1;
Now, say I create a cell array:
mycell = {'mydouble'}
I want to create the 1x1 double mydouble equal to 1 using the object mycell. How can I do that?

답변 (1개)

Torsten
Torsten 2024년 5월 24일
이동: Torsten 2024년 5월 24일
mydouble = 1;
mycell{1} = mydouble
mycell = 1x1 cell array
{[1]}

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by