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

1 Ansicht (letzte 30 Tage)
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?

Antworten (1)

dpb
dpb am 7 Nov. 2020
function [microbeInd, noLifeInd] = semTest(semData)
microbeInd = islocalmax(semData);
noLifeInd=semData(~microbeInd);
end

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by