When I am trying to find peaks and widths of the peaks, I am getting errors related to findpeaks(). The error is:
Error using findpeaks>parse_inputs (line 131)Expected a string for the parameter name, instead the input type was 'double'.Error in findpeaks (line 71)[X,Ph,Pd,Th,Np,Str,infIdx] = parse_inputs(Xin,varargin{:});Error in aaaa (line 12)findpeaks(PeakSig,x,'Annotate','extents','WidthReference','halfheight')
I guess this is happening because of the using annotate and extents in findpeaks() function. Kindly help me resolve this issue. Thanks in advance.
Best Answer