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
Walter Roberson
Walter Roberson on 21 Nov 2019
Do you want to just discard the extra values, or do you want interpolation ?

Sign in to comment.

Accepted Answer

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

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!