Shortening Matrix to specific number

3 views (last 30 days)
I have a matrix 139776 x 1. I need to shorten the matrix to 138240 x 1.
How can I do this?
Also, Is there a way to shorten the matrix to the nearest factor of Y.
Thanks
  2 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 22 Nov 2019
YourMatrix(138240+1:end) = [];

More Answers (0)

Community Treasure Hunt

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

Start Hunting!