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

Asked by Juan Rosado on 1 Jul 2012
Latest activity Answered by Walter Roberson on 2 Jul 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.

0 Comments

Juan Rosado

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 2 Jul 2012
Accepted answer
n = length(data);

0 Comments

Walter Roberson

Contact us