Borrar filtros
Borrar filtros

extract number of columns in each row

1 visualización (últimos 30 días)
ar
ar el 3 de Oct. de 2022
Editada: Stephen23 el 3 de Oct. de 2022
  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?

Respuesta aceptada

Stephen23
Stephen23 el 3 de Oct. de 2022
Editada: Stephen23 el 3 de Oct. de 2022
Where C is your cell array:
V = cellfun(@numel,C)
V = cellfun('size',C,2)

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by