필터 지우기
필터 지우기

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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by