Code covered by the BSD License  

Highlights from
Automated Failure Boundary Mapping

image thumbnail

Automated Failure Boundary Mapping

by

 

18 Aug 2009 (Updated )

Demo files from July 21, 2009 webinar

findPeak(t,y)
function [freq, amp] = findPeak(t,y)
% Helper function to find peaks

%   Copyright 2009 The MathWorks, Inc.

N = 2^nextpow2(2*length(y));
Fs  = 1./mean(diff(t));
[Pyy,fy]=periodogram(y,[],N,Fs);
[amp,mi] = max(Pyy);
freq = fy(mi);

Contact us