フィルターのクリア

How do i include every second peak only?

3 ビュー (過去 30 日間)
Morten Jørgensen
Morten Jørgensen 2018 年 12 月 4 日
回答済み: KSSV 2018 年 12 月 4 日
X is my data, and I've used the peakfinder function, I want to store it in step
in one row I want to include peak 1 and 2, next row peak 3 and 4 and so on.
step={};
for l=1:length(peakLoc)-1
l;
step{length(step)+1} =X(peakLoc(l):peakLoc(l+1),:);
end

回答 (1 件)

KSSV
KSSV 2018 年 12 月 4 日
A = rand(10,1) ;
iwant = A(2:2:end)

カテゴリ

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