Array selection
Afficher commentaires plus anciens
Hello,
I have one array, for example: A=[10 6 8 9 11] and I take the min of it which is number 6. How can I select only the three numbers which is on the right of number 6? I mean I want a function to select numbers 8, 9, 11 (only them and not 10) and sum them all (8+9+11). However, I want this function to work for random arrays and not only for array A. I mean this function will always select the numbers that are on the right of the minimum number of an array and will sum them all.
If anyone knows, I will be grateful!
Thank you..
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!