Getting values out of cell arrays

1 view (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!