Removing a column from multidimensional array

8 views (last 30 days)
Hello,
I have a 5x6x7 3-dimensional matrix and would like to remove the last column in the matrix so that it is 5x5x7. (i.e. 5 rows, 5 columns, across 7 sheets)
Could anyone advise how I can remove this column?
Thank you.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 26 Mar 2014
Edited: Azzi Abdelmalek on 26 Mar 2014
a=a(:,1:5,:)

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!