Borrar filtros
Borrar filtros

How to take the value of row of a cell array as a variable

1 visualización (últimos 30 días)
Greeting,
My program calculates a cell array from a forecasting page which updates dayli. Consequently, the value of the rows changes constantly.
The cell array is stored in the variable data.
For example,
data =
{35x1 cell}
I want to tell MATLAB to take the value '35' and store it as variable 'n' for later use within a for loop.
Thank you for your time.

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Jul. de 2012
n = length(data);

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by