Getting values out of cell arrays

2 visualizaciones (últimos 30 días)
Rudolf
Rudolf el 6 de Mayo de 2021
Comentada: Rudolf el 6 de Mayo de 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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 6 de Mayo de 2021
output = cellfun(@(C) C(20:50,:), YourCellArray, 'uniform', 0);

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by