How would I remove certain values of an array and put it into another array?
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
dpb
2020년 11월 7일
function [microbeInd, noLifeInd] = semTest(semData)
microbeInd = islocalmax(semData);
noLifeInd=semData(~microbeInd);
end
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!