Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by