Shortening Matrix to specific number

3 visualizzazioni (ultimi 30 giorni)
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 Commenti
Walter Roberson
Walter Roberson il 21 Nov 2019
Do you want to just discard the extra values, or do you want interpolation ?

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by