Rank: 3734 based on 29 downloads (last 30 days) and 1 file submitted
photo

Martin Gorjan

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Martin Gorjan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Jun 2008 Auto Peak Finder & Analyser Finds peaks, locations, fwhms and area in signal. Author: Martin Gorjan dsp, peak, maximum detection and..., height, width, fwhm 29 9
  • 4.0
4.0 | 2 ratings
Comments and Ratings on Martin Gorjan's Files View all
Updated File Comment by Comments Rating
08 Dec 2012 Auto Peak Finder & Analyser Finds peaks, locations, fwhms and area in signal. Author: Martin Gorjan leo

Thanks. It has been very helpful

10 Mar 2012 Auto Peak Finder & Analyser Finds peaks, locations, fwhms and area in signal. Author: Martin Gorjan John

I got an error in line 82
"Subscript indices must either be real positive integers or logicals".
because in some case ipeak-indfwhms equals a negative number

21 Jan 2010 Auto Peak Finder & Analyser Finds peaks, locations, fwhms and area in signal. Author: Martin Gorjan Eric Diaz

The above error is a flaw in the code. The programmer forgot to include a check for what happens during shifting of signal when the peak index is too small or too large (i.e., at the edges of the matrix).

One could include the following code just before the shifting to bypass all peaks near the edges. Just define number of elements to ignore on each edge.

% check if index too big
if ipeak >= length(y)-numElements
break
end

% check if index too small
if ipeak <= numElements
break
end

26 Apr 2009 Auto Peak Finder & Analyser Finds peaks, locations, fwhms and area in signal. Author: Martin Gorjan sam s

hi,
when i launch this programm i have an error :

Subscript indices must either be real positive integers or logicals.

Error in ==> autopeak at 75
y_shift2(ifwhms(1)-1:ifwhms(1)+1) = y_shift2(ifwhms(1)-1:ifwhms(1)+1) + peak(i);

25 Jan 2009 Auto Peak Finder & Analyser Finds peaks, locations, fwhms and area in signal. Author: Martin Gorjan Donald

yy = smooth(y) smooths the data in the column vector y using a moving average filter. Results are returned in the column vector yy. The default span for the moving average is 5.

The first few elements of yy are given by

yy(1) = y(1)
yy(2) = (y(1) + y(2) + y(3))/3
yy(3) = (y(1) + y(2) + y(3) + y(4) + y(5))/5
yy(4) = (y(2) + y(3) + y(4) + y(5) + y(6))/5

So if you do not have the MATLAB "Curve Fitting Toolbox", you can make your own smooth function from the above description.

Contact us