how to remove the last column in the matrix?
Show older comments
Hello! There are matrices, I need to delete the last column, how would I do this?
A=[2 4 2 4 2 6 8];
[x,y]=size(A);
A(:, y) = [];
I try something like this, but I need to change the changed data to another array
Accepted Answer
More Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!