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

조회 수: 2 (최근 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 CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by