How to select every nth value with the last value fixed from a column?
Afficher commentaires plus anciens
I have a column of 4901 values starting from a value of -25 (at first position) to a value of 8579 (at 4901 th position). Now I want to have a new column that should comprise of values after every 100 th number BUT the last value ( i.e., 8579) should remain in the new column
Réponse acceptée
Plus de réponses (1)
Andrei Bobrov
le 21 Oct 2019
a = original_vector([100:100:4901,4901]);
1 commentaire
Noor Yaseen
le 22 Oct 2019
Catégories
En savoir plus sur NaNs dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!