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

1 vue (au cours des 30 derniers jours)
Kylenino Espinas
Kylenino Espinas le 6 Nov 2020
Réponse apportée : dpb le 7 Nov 2020
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?

Réponses (1)

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

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by