How to delete last number from a array?
1,010 views (last 30 days)
Show older comments
I need, a=[8 9 5 8 7] to a=[8 9 5 8]. Every time I have to delete only last element. In my case, it will be complicated to delete like 5th element.
2 Comments
Walter Roberson
on 7 Jun 2019
Birdman's answer already does that. end always refers to the last element no matter how large that is.
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!