フィルターのクリア

QUestion regarding Number of elements in a cell

1 回表示 (過去 30 日間)
John
John 2013 年 12 月 3 日
回答済み: Walter Roberson 2013 年 12 月 3 日
I've a cell array
X{1,1} = [1,2,3,4];
X{1,2} = [1,3];
X{2,1} = [1,3,4];
X{2,2} = [1,4,5];
I wanted to find the number of elements in each cell. my output should be ,for example, number of elements in X{1,1} = 4 and so on. Is there a function that I could use?

採用された回答

Walter Roberson
Walter Roberson 2013 年 12 月 3 日
cellfun(@numel, X)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by