Using cell array to define double

1 visualización (últimos 30 días)
Luigi
Luigi el 24 de Mayo de 2024
Comentada: Stephen23 el 24 de Mayo de 2024
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?

Respuestas (1)

Torsten
Torsten el 24 de Mayo de 2024
Movida: Torsten el 24 de Mayo de 2024
mydouble = 1;
mycell{1} = mydouble
mycell = 1x1 cell array
{[1]}

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by