Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Juan Rosado
Juan Rosado le 1 Juil 2012
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.

Réponse acceptée

Walter Roberson
Walter Roberson le 2 Juil 2012
n = length(data);

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by