extract number of columns in each row

2 ビュー (過去 30 日間)
ar
ar 2022 年 10 月 3 日
編集済み: Stephen23 2022 年 10 月 3 日
  1. I have the following variable with a list of rows - each containing a [1 x n] matrix. Is there a way to extract the n for each row into a separate variable?

採用された回答

Stephen23
Stephen23 2022 年 10 月 3 日
編集済み: Stephen23 2022 年 10 月 3 日
Where C is your cell array:
V = cellfun(@numel,C)
V = cellfun('size',C,2)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by