Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vinothini Selvaraju
Camera based vital signs estimation
Commits
89ab9e4f
Commit
89ab9e4f
authored
Jan 26, 2022
by
Vinothini Selvaraju
Browse files
Upload New File
parent
33c21981
Changes
1
Hide whitespace changes
Inline
Side-by-side
freq_spectrum.m
0 → 100644
View file @
89ab9e4f
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
end
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment