フィルターのクリア

fourier transform ans amplitude

4 ビュー (過去 30 日間)
Erkan
Erkan 2024 年 2 月 26 日
コメント済み: Hassaan 2024 年 2 月 26 日
Hi everyone, good work, why is the converted signal divided by sqrt(n)^2 when finding P values ​​after the Fourier transformation of the gaussian pulse on the matlab website?
Fs = 44100; % Sampling frequency
T = 1/Fs; % Sampling period
t = -0.5:T:0.5; % Time vector
L = length(t); % Signal length
X = 1/(0.4*sqrt(2*pi))*(exp(-t.^2/(2*(0.1*1e-3)^2)));
n = 2^nextpow2(L);
Y = fft(X,n);
f = Fs*(0:(n/2))/n;
P = abs(Y/sqrt(n)).^2; %???

採用された回答

Hassaan
Hassaan 2024 年 2 月 26 日
Dividing by sqrt(n)^2 after performing the FFT on a Gaussian pulse or any signal in MATLAB is a normalization step to ensure that the signal's power or energy is consistently represented across the time and frequency domains, adhering to Parseval's theorem. This step is crucial for accurate signal analysis and interpretation in various scientific and engineering applications.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.
  2 件のコメント
Erkan
Erkan 2024 年 2 月 26 日
Thank you for your answer. I will contact you with a problem I am trying to resolve.
Hassaan
Hassaan 2024 年 2 月 26 日
You are welcome!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by