Effacer les filtres
Effacer les filtres

How to skip certain index numbers in row vector in matlab

41 vues (au cours des 30 derniers jours)
charu shree
charu shree le 27 Juin 2020
Hello all,
I have a row vector of 50 elements. I want to apply a specific operation to all the elements except the indices number 11,21,31,41 of this row vector. How can i do this in effective and faster way. Thanks in advance....

Réponses (1)

madhan ravi
madhan ravi le 27 Juin 2020
indices = setdiff(1:50, [11,21,31,41])

Catégories

En savoir plus sur Loops and Conditional Statements 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