フィルターのクリア

How to get amplitude-frequency response curve?

5 ビュー (過去 30 日間)
Chinwe Orie
Chinwe Orie 2018 年 7 月 2 日
コメント済み: Chinwe Orie 2018 年 7 月 2 日
How should one go about plotting an amplitude-frequency curve?
So far, what I've done is to take a signal, take the upper and lower envelope peaks (using envelope() function) and subtract them to get my amplitude. I would take the fft of the original signal in order to get my frequency. I also made sure that the fft I took was of the same vector length as my amplitude. However, whenever I plot the two I get a blank graph. Why is this?
  4 件のコメント
Image Analyst
Image Analyst 2018 年 7 月 2 日
Well I'm glad you're not using the envelope function like you said. You're merely subtracting the mean. Which is fine, but not necessary. You could leave it in there, you'd just have a huge spike at the zero frequency location.
I can't really try your data because it seems you removed your workbook. All I can say is to look at the y values and try to see what their values are. Is one value huge, like the first or last one and so, because of that, you can't see any in-between values?
Attach your workbook again if you want anyone to help you.
Chinwe Orie
Chinwe Orie 2018 年 7 月 2 日
Here it is. The rate, or Fs is 25000.

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by