Effacer les filtres
Effacer les filtres

position of set bits in a vector in matlab

2 vues (au cours des 30 derniers jours)
Sadia
Sadia le 26 Fév 2013
hi Is there a command that could tell me which bits are set in a vector?
example x=[0 1 0 1 1 0 1]
required output: y=[2 4 5 7]
much appreciated!!!!

Réponse acceptée

Walter Roberson
Walter Roberson le 26 Fév 2013

Plus de réponses (0)

Catégories

En savoir plus sur Logical 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