How to replace all elements of matrix with zero except some elements(localpeaks?
4 次查看(过去 30 天)
显示 更早的评论
Hello,I have a matrix of data with size 1*256. I found local peaks using [pks loc]=findpeaks(hh2) ;now in my matrix i want to put zero instead of all elements except peaks that i found.can any one help me plz?
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!