# MATLAB: How to Modify Entries in Cell

cellcell arraymatrixmatrix manipulation

Hello,
I would greatly appreciate any/all help with this issue:
I have a 18 x 1 cell array. Each cell in this array contains an (1024 x 1024 x 50 , value = double) matrix. Thus, there are a total of 18 of these matrices, each one stored in a separate cell.
I would like to modify each of the matrices by cutting out the last 2 "frames" –> producing a total of 18 (1024 x 1024 x 48) matrices, each one stored in a separate cell.
• result = cellfun(@(x)x(:,:,1:end-2),your_cell_array,'uni',false);