how to exclude above and below of average of min and max peaks?

1 回表示 (過去 30 日間)
prianka shukla
prianka shukla 2016 年 3 月 22 日
回答済み: Ced 2016 年 3 月 22 日
hello all,I have a signal and took the average of minpeaks and maxpeaks,I need to remove all the things below the min peak and above the max peak,how can i do it?

回答 (1 件)

Ced
Ced 2016 年 3 月 22 日
You can select certain parts of a vector using logical indices.
Example: Remove everything > 2
a = [ 1 2 3 4 5 ];
ind = (a > 2); % returns logical vector selecting all elements > 2
a(ind) = []; % remove
Cheers

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by