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

1 回表示 (過去 30 日間)
Juan Rosado
Juan Rosado 2012 年 7 月 1 日
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.

採用された回答

Walter Roberson
Walter Roberson 2012 年 7 月 2 日
n = length(data);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by