mainfrequency(x, y, TDx, Fs)

版本 1.1 (1.7 KB) 作者: Davide Vatteroni
This function finds the main frequency of a signal
42.0 次下载
更新时间 2018/11/26

查看许可证

Mainfrequency finds the main frequency (and its standard deviation) of a signal y, sampled in a interval x (of time) with Fs as sampling rate. If you don't know the sampling rate, set Fs equal to zero (if so, x must be in seconds). TDx is the flag of x, and it can be "Second" or "Data". Also it returns the plots "amplitude vs. time" & "magnitude vs. frequency". If there are two or more peaks with the same height, it chooses the lower one in frequency. Finally it returns the total power P of the signal.

引用格式

Davide Vatteroni (2024). mainfrequency(x, y, TDx, Fs) (https://www.mathworks.com/matlabcentral/fileexchange/64567-mainfrequency-x-y-tdx-fs), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1

Better estimate of the standard deviation

1.0.0.0