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 件のコメント
参考
カテゴリ
Help Center および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!