フィルターのクリア

position of set bits in a vector in matlab

2 ビュー (過去 30 日間)
Sadia
Sadia 2013 年 2 月 26 日
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!!!!

採用された回答

Walter Roberson
Walter Roberson 2013 年 2 月 26 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by