Effacer les filtres
Effacer les filtres

extract number of columns in each row

1 vue (au cours des 30 derniers jours)
ar
ar le 3 Oct 2022
Modifié(e) : Stephen23 le 3 Oct 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?

Réponse acceptée

Stephen23
Stephen23 le 3 Oct 2022
Modifié(e) : Stephen23 le 3 Oct 2022
Where C is your cell array:
V = cellfun(@numel,C)
V = cellfun('size',C,2)

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by