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 CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by