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

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?

Respuestas (1)

function [microbeInd, noLifeInd] = semTest(semData)
microbeInd = islocalmax(semData);
noLifeInd=semData(~microbeInd);
end

Categorías

Más información sobre Data Types en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Nov. de 2020

Respondida:

dpb
el 7 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by