how to find fwhm using fwhm()?

58 ビュー (過去 30 日間)
Jay Vaidya
Jay Vaidya 2020 年 10 月 10 日
コメント済み: Thor 2021 年 2 月 17 日
I have a time domain data and also a FFT of this data. But when I use fwhm(x,y) then it says
Pulse Polarity = Positive
Pulse is Impulse or Rectangular with 2 edges
ans =
NaN
I am trying to also use findpeaks() but I don't know how to proceed after that. Any help would be appreciated. Thanks
Since the data is larger than 5 MB, I have attached the link to the data. Thanks,
There are 4 signals in the data and the first row is the frequency. I get the fwhm of only 2nd and 4th signals. Others show NaN. But the ones that I get are too incorrect as getting 4e3 and 4e7, which doesn't make sense. I have a nice FFT as attached below.
  1 件のコメント
Thor
Thor 2021 年 2 月 17 日
I am working on something similar, what do " polarity" and "is impulse or rectangular with 2 edges" mean?

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

採用された回答

Star Strider
Star Strider 2020 年 10 月 10 日
The fwhm function is a File Exchange contribution. As I read the function code, it should likely give you something other than NaN if it detects 2 edges, however I have no idea what youare passing to it.
If you have the Signal Processing Toolbox, another option would be the findpeaks function. It will return the FWHM of the peaks it identifies if you ask it to. See the documentation for it that I linked to for details.
  8 件のコメント
Jay Vaidya
Jay Vaidya 2020 年 10 月 11 日
This is great, and what I exactly needed.
Also, Can you tell me how can I find the phase noise of this data in dBc/Hz? I have made another post for this.
Star Strider
Star Strider 2020 年 10 月 11 日
As always, my pleasure!
With respect to your other Question, I do not have the necessary blockset. That aside, I posted a ‘sort of’ Answer that is my best guess as to how to emulate it. That is the best I can do. I will delete that Asnwer if it is not what you want.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series Events についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by