This is the code that I have written thus far, but I get error messages. The error message is a line 5: peakCount = r(1,1). . Anyone have any ideas?
function [xx] = reducetopeak (xx)
xx(xx(:,:) <=(2*std(xx)), :) = 0;
r = find(xx);
peakCount = r(1,1);
count = peakCount + 1;test
while (count <...