Commit 89ab9e4f authored by Vinothini Selvaraju's avatar Vinothini Selvaraju
Browse files

Upload New File

parent 33c21981
function [pxx,f,peak_f,max_f] = freq_spectrum(signal,fs)
[pxx,f] = periodogram(signal,[],[],fs); % Power spectrum
max_f = max(pxx); % Maximum power frequency
peak_f = f(pxx==max_f); %peak frequency
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment