フィルターのクリア

Determine frequency of signals

2 ビュー (過去 30 日間)
Muhammad Mirza Murad
Muhammad Mirza Murad 2022 年 1 月 14 日
回答済み: Chunru 2022 年 1 月 14 日
Hi, how do I determine the frequency of this signal?
I got this from a .mat file
x = load('signal1.mat');
plot(x.x);
  1 件のコメント
KSSV
KSSV 2022 年 1 月 14 日
Read about fft

サインインしてコメントする。

回答 (1 件)

Chunru
Chunru 2022 年 1 月 14 日
load signal1
fs = 1; % normalized freq
y = abs(fft(x));
L = length(y);
f = (0:round(L/2)-1)/L*fs;
p = y(1:round(L/2));
[pmax, imax] = max(p);
plot(f, p, 'b-', f(imax), pmax, 'r*')
fprintf('The freq: %f\n', f(imax))
The freq: 0.012195

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by