Store Values from a Power Spectrum graph to an array

1 回表示 (過去 30 日間)
shez96
shez96 2011 年 10 月 6 日
Hi,
I have a power spectrum of a wave signal, and I need to store the power values for the frequencies from 0 - 500 Hz. When I do find(f<500) it shows me the first and the last column number where the power values are. but I need to Store those power values from the frequencies 0-500Hz in an different array since I need to use those values in a formula to integrate a function. If any one can helo me out I am really greatful.
Thanks

採用された回答

Honglei Chen
Honglei Chen 2011 年 10 月 6 日
Hi RMIT,
let's say you have the frequency in f and the corresponding spectrum in P. Then you should be able to do what you want by
P0to500 = P((f>0)&(f<500))
HTH
  1 件のコメント
shez96
shez96 2011 年 10 月 7 日
Thanks for that, It worked.
Cheers

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by