specwelch

バージョン 1.0.0.0 (2.73 KB) 作成者: Alex Sanchez
Spectrum using Welch's method
ダウンロード: 8.1K
更新 2006/7/13

ライセンスがありません

Spectrum using Welch's method

USAGE:
q = specwelch(x,dt,w,Nsg,pnv,Wn,ftype,n)
[psdf,f] = specwelch(x,dt,w,Nsg,pnv,Wn,ftype,n)
[psdf,conf,f] = specwelch(x,dt,w,Nsg,pnv,Wn,ftype,n)

DESCRIPTION:
Calculates the spectrum for x
using Welch's method.
The confidence intervals are calculated
using the inverse of chi-square CDF.
Also includes a filtering option using the
butterworth filter to see the effect of the
filter on the spectrum

INPUT VARIABLES:
x - Time series, [vector]
dt - Sampling Rate, [scalar]
win - Window, one of:
'hanning', 'hamming', 'boxcar'
Nsg - Number of Segments (>=1)
pnv - Percentage Noverlap of Segments (0-100)
Nb - Band Averaging, number of bands to average
Wn - Cut-Off frequencies, used for filtering
ftype - Type of filter, 'high', 'low' or 'stop'
n - Number of coefficients to use in
the Butterworth filter

OUTPUT VARIABLES:
q - structure with the following fields:
xp - detrended x
f = Frequencies
T - Periods
m - Magnitude
a - Amplitude
s - Power spectrum, Sxx(win), [Power]
psdw - Power Spectral Density, Pxx(win), [Power/rad/sample]
psdf - Power Spectral Density, Pxx(f), [Power/sample-freq]
psdT - Power Spectral Density, Pxx(T), [Power*time-unit]
conf - Upper and Lower Confidence Interval multiplication
factors using chi-squared approach

引用

Alex Sanchez (2024). specwelch (https://www.mathworks.com/matlabcentral/fileexchange/11690-specwelch), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0