Getting values out of cell arrays

1 Ansicht (letzte 30 Tage)
Rudolf
Rudolf am 6 Mai 2021
Kommentiert: Rudolf am 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by