How would I remove certain values of an array and put it into another array?

1 回表示 (過去 30 日間)
Kylenino Espinas
Kylenino Espinas 2020 年 11 月 6 日
回答済み: dpb 2020 年 11 月 7 日
function [microbeInd, noLifeInd] = semTest(semData)
microbeInd = islocalmax(semData);
noLifeInd(microbeInd) = [];
end
After locating local maximas how would I make another array which is the values that are not maximas?

回答 (1 件)

dpb
dpb 2020 年 11 月 7 日
function [microbeInd, noLifeInd] = semTest(semData)
microbeInd = islocalmax(semData);
noLifeInd=semData(~microbeInd);
end

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by