Effacer les filtres
Effacer les filtres

Shortening Matrix to specific number

2 vues (au cours des 30 derniers jours)
sam van Bohemen
sam van Bohemen le 21 Nov 2019
Commenté : sam van Bohemen le 22 Nov 2019
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 commentaires
Walter Roberson
Walter Roberson le 21 Nov 2019
Do you want to just discard the extra values, or do you want interpolation ?
sam van Bohemen
sam van Bohemen le 21 Nov 2019
discarad them

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 22 Nov 2019
YourMatrix(138240+1:end) = [];
  1 commentaire
sam van Bohemen
sam van Bohemen le 22 Nov 2019
thanks for your help

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by