how to remove the last column in the matrix?
21 views (last 30 days)
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
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Multidimensional Arrays 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!