Getting values out of cell arrays

2 vues (au cours des 30 derniers jours)
Rudolf
Rudolf le 6 Mai 2021
Commenté : Rudolf le 6 Mai 2021
I have a 1x24 cell containing 24 arrays of double values. How can i extract the values in row 20 to 50 in each cell over to a new 1x24 cell?

Réponse acceptée

Walter Roberson
Walter Roberson le 6 Mai 2021
output = cellfun(@(C) C(20:50,:), YourCellArray, 'uniform', 0);
  1 commentaire
Rudolf
Rudolf le 6 Mai 2021
Thank you Walter :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by