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

2 views (last 30 days)
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.

Accepted Answer

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

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!