extract number of columns in each row

2 次查看(过去 30 天)
  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 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