[Solved] How to detect peaks on gray background with Matlab FastPeakFind?
You are not using the function correctly. your code is this (verbatim): f = figure; hax = axes(f); af = figure(‘Name’, ‘Do Not Touch’); x = rand(1,100); y = rand(1,100); linewidth=1; plot(hax, x,y, ‘LineWidth’, linewidth); I = getframe(hax); I = I.cdata; The matrix I is not a matrix that contain peaks like the function is … Read more