Azzera filtri
Azzera filtri

extract number of columns in each row

1 visualizzazione (ultimi 30 giorni)
ar
ar il 3 Ott 2022
Modificato: Stephen23 il 3 Ott 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?

Risposta accettata

Stephen23
Stephen23 il 3 Ott 2022
Modificato: Stephen23 il 3 Ott 2022
Where C is your cell array:
V = cellfun(@numel,C)
V = cellfun('size',C,2)

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by