Removes the non desired rows or columns from a cell


Updated 11 Apr 2014

View License

Examples: Let cellA be a [3x3] cell.
cellA = fun_removecellrowcols(cellA,2,'rows')
% the output will be a [2x3] cell, in which the middle row has been removed.

cellA = fun_removecellrowcols(cellA,[1,2],'cols')

% The output dimensions of cellA will be [3x1], in which 1st and 2nd columns
have been removed.

Cite As

José Crespo Barrios (2023). fun_removecellrowcols (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Resizing and Reshaping Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Add an example