How to extend x range of pwelch

4 ビュー (過去 30 日間)
Anthony Koning
Anthony Koning 2023 年 4 月 27 日
コメント済み: Star Strider 2023 年 4 月 27 日
Hi, I'm wondering how to extend the pwelch x range of a function. by default, if you were to plot pwelch(X), the default range is from 0-1. Is there any way to change this range to calculate the normalized frequency from, say, 0-10? Thanks.

採用された回答

Torsten
Torsten 2023 年 4 月 27 日
移動済み: Torsten 2023 年 4 月 27 日
Multiply the result from pwelch by 10. :-)
  4 件のコメント
Anthony Koning
Anthony Koning 2023 年 4 月 27 日
編集済み: Anthony Koning 2023 年 4 月 27 日
No, I'm looking to rescale the x range of the pwelch function. Essentially, I have a signal that is using a pwelch command to identify the power density spectrum. The default value for the x-axis, normalized frequency (or Hz) goes from 0-1. I would like to know how to extend the range of this to show the Hz from 0-10, without changing the spectrum's power values (yaxis). Ysing this picture as an example, I'd like the x range to be multiplied by 10, without changing the y range. This is obvious a crude example, and the graphs liekly wouldn't look identical with only a different x scale, but I hope this helps clarify what I'm looking for.
Star Strider
Star Strider 2023 年 4 月 27 日
The frequency axis goes from DC (0 Hz) to π radians or the Nyquist frequency (half the sampling frequency) if that information is provided. The only way to change the frequency axis would be to resample the signal to a higher sampling frequency, in this instance, 10 times the original sampling frequency.

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by