非参数谱对象函数替换
周期图PSD对象函数替代语法
的spectrum.periodogram
对象语法在未来将被删除。下表给出了等价的推荐功能语法周期图
。在修改后的周期图,您使用非默认的窗口矩形窗口。为了说明改进的周期图语法,表使用一个特定的窗口。在每个例子中,x
是输入信号。
弃用的语法 |
替代语法 |
---|---|
h = spectrum.periodogram;psd (h (x); |
周期图(x); |
%修正周期图和窗口函数h = spectrum.periodogram (“汉明”);psd (h (x); |
赢得=汉明(长度(x));周期图(x,赢得); |
%的窗口函数和可选的输入参数窗口函数h = spectrum.periodogram ({“汉明”,“周期”});psd (h (x); |
赢得=汉明(长度(x),“周期”);周期图(x,赢得);
|
%泰勒窗口和多个可选的输入参数nbar = 4;sll = 30;h = spectrum.periodogram ({“泰勒”、nbar sll});psd (h, x,“Fs”fs,“centerdc”,真正的); |
nbar = 4;sll = -30;赢得= taylorwin(长度(x)、nbar sll);周期图(x,赢,[],fs,“中心”);
|
h = spectrum.periodogram (…);psd (h, x,“NFFT”,nfft); |
赢了=…周期图(x,赢,nfft);
|
h = spectrum.periodogram (…);psd (h, x,“Fs”fs); |
赢了=…周期图(x,赢,[],fs);
|
h = spectrum.periodogram (…);psd (h, x,“NFFT”nfft,“Fs”fs); |
赢了=…周期图(x,赢,nfft fs);
|
h = spectrum.periodogram (…);psd (h, x,…“FreqPoints”,“用户定义”,…“FrequencyVector”,w); |
赢了=…周期图(x,赢,w);
|
h = spectrum.periodogram (…);psd (h, x,“FreqPoints”,“用户定义”,…“FrequencyVector”f“Fs”fs); |
赢了=…周期图(x,赢,f, f);
|
%的双面真实信号的频谱h = spectrum.periodogram (…);psd (h, x,…、“SpectrumType”、“双侧”); |
赢了=…周期图(x,赢了,…,双侧); |
%双边频谱与直流频率(0)中心h = spectrum.periodogram (…);psd (h, x,…,“CenterDC”,真正的); |
赢了=…周期图(x,赢了,…、“中心”); |
h = spectrum.periodogram (…);psd (h, x,…、“ConfLevel”p); |
赢了=…周期图(x,赢了,…、“ConfidenceLevel”p); |
h = spectrum.periodogram (…);hPSD = psd (h, x,…);Pxx = hPSD.Data;F = hPSD.Frequencies; |
赢了=…[Pxx F] =周期图(x,赢了,…); |
h = spectrum.periodogram (…);hPSD = psd (h, x,…、“ConfLevel”p);Pxx = hPSD.Data;F = hPSD.Frequencies;Pxxc = hPSD.ConfInterval; |
赢了=…[Pxx F, Pxxc] =周期图(x,赢了,…); |
周期图MSSPECTRUM对象函数替代语法
的spectrum.periodogram
MSSPECTRUM对象语法在未来将被删除。下表给出了等价的推荐功能语法周期图
。在修改后的周期图,您使用非默认的窗口矩形窗口。为了说明改进的周期图语法,表使用一个特定的窗口。在每个例子中,x
是输入信号。
弃用的语法 |
推荐的语法 |
---|---|
h = spectrum.periodogram;msspectrum (h (x); |
周期图(x,“权力”);
|
h = spectrum.periodogram (“汉明”);msspectrum (h (x);
|
赢得=汉明(长度(x));周期图(x,赢了,“权力”);
|
h = spectrum.periodogram ({“汉明”,“周期”});msspectrum (h (x); |
赢得=汉明(长度(x),“周期”);周期图(x,赢了,“权力”); |
nbar = 4;sll = 30;h = spectrum.periodogram ({“泰勒”、nbar sll});msspectrum (h (x);
|
nbar = 4;sll = -30;赢得= taylorwin(长度(x)、nbar sll);周期图(x,赢了,“权力”);
|
h = spectrum.periodogram (…);msspectrum (h, x,“NFFT”,nfft); |
赢了=…nfft周期图(x,赢了,“权力”); |
h = spectrum.periodogram (…);msspectrum (h, x,“Fs”fs); |
赢了=…周期图(x,赢,[],fs,“权力”); |
h = spectrum.periodogram (…);msspectrum (h, x,“NFFT”nfft,“Fs”fs); |
赢了=…周期图(x,赢,nfft fs,“权力”); |
h = spectrum.periodogram (…);msspectrum (h, x,…、“SpectrumType”、“双侧”); |
赢了=…周期图(x,赢了,…“双侧”,“权力”); |
h = spectrum.periodogram (…);msspectrum (h, x,…,“CenterDC”,真正的); |
赢了=…周期图(x,赢了,…、“中心”、“权力”); |
h = spectrum.periodogram (…);msspectrum (h, x,…、“ConfLevel”p); |
赢了=…周期图(x,赢了,…,ConfidenceLevel p…“权力”); |
h = spectrum.periodogram (…);hMS = msspectrum (h, x,…);Sxx = hMS.Data;F = hMS.Frequencies; |
赢了=…[Sxx F] =周期图(x,赢了,…,“权力”); |
h = spectrum.periodogram (…);hMS = msspectrum (h, x,…、“ConfLevel”p);Sxx = hMS.Data;F = hMS.Frequencies;Sxxc = hMS.ConfInterval; |
赢了=…[Sxx F, Sxxc] =周期图(x,赢了,…,“权力”); |
韦尔奇PSD对象函数替代语法
的spectrum.welch
对象语法在未来将被删除。下表给出了等价的推荐功能语法pwelch
。为了说明改进的周期图语法,表使用一个特定的窗口。在每个例子中,x
是输入信号。
弃用的语法 |
替代语法 |
---|---|
h = spectrum.welch;psd (h (x); |
pwelch (x); |
h = spectrum.welch (“高斯”);psd (h (x);
|
赢得= gausswin (64);pwelch (x,赢得); |
%韦尔奇估计窗函数和可选的输入参数h = spectrum.welch ({“汉明”,“周期”});psd (h (x); |
赢得=汉明(64“周期”);pwelch (x,赢得);
|
%泰勒窗口和多个可选的输入参数nbar = 4;sll = 30;h = spectrum.welch ({“泰勒”、nbar sll});psd (h (x); |
nbar = 4;sll = -30;赢得= taylorwin(64年,nbar sll);pwelch (x,赢得); |
h = spectrum.welch (“汉明”,segLen);psd (h (x);
|
赢得=汉明(segLen);pwelch (x,赢得); |
h = spectrum.welch ({“汉明”,“周期”},…segLen);psd (h (x); |
赢得=汉明(segLen,“周期”);pwelch (x,赢得);
|
nbar = 4;sll = 30;h = spectrum.welch ({“泰勒”nbar sll},…segLen);psd (h (x); |
nbar = 4;sll = -30;赢得= taylorwin (segLen、nbar sll);pwelch (x,赢得); |
h = spectrum.welch (“汉明”、segLen ovlpPct);psd (h (x);
|
赢得=汉明(segLen);Noverlap =装天花板((ovlpPct / 100) * segLen);pwelch (x,赢,Noverlap); |
h = spectrum.welch ({“汉明”,“周期”},…segLen ovlpPct);psd (h (x); |
赢得=汉明(segLen,“周期”);Noverlap =装天花板((ovlpPct / 100) * segLen);pwelch (x,赢,Noverlap);
|
nbar = 4;sll = 30;h = spectrum.welch ({“泰勒”nbar sll},…segLen ovlpPct);psd (h (x); |
nbar = 4;sll = -30;赢得= taylorwin (segLen、nbar sll);Noverlap =装天花板((ovlpPct / 100) * segLen);pwelch (x,赢,Noverlap); |
h = spectrum.welch (…);psd (h, x,“NFFT”,nfft); |
赢了=…Noverlap =…pwelch (x,赢,Noverlap nfft); |
h = spectrum.welch (…);psd (h, x,“Fs”fs); |
赢了=…Noverlap =…pwelch (x,赢,Noverlap, [], fs); |
h = spectrum.welch (…);psd (h, x,“NFFT”nfft,“Fs”fs); |
赢了=…Noverlap =…pwelch (x,赢,Noverlap nfft, fs); |
h = spectrum.welch (…);psd (h, x,…“FreqPoints”,“用户定义”,…“FrequencyVector”,w); |
赢了=…周期图(x,赢,w);
|
h = spectrum.periodogram (…);psd (h, x,“FreqPoints”,“用户定义”,…“FrequencyVector”f“Fs”fs); |
赢了=…Noverlap =…pwelch (x,赢得Noverlap f, f); |
%的双面真实信号的频谱h = spectrum.welch (…);psd (h, x,…、“SpectrumType”、“双侧”); |
赢了=…Noverlap =…Noverlap pwelch (x,赢了,…,双侧); |
%双边频谱与直流频率(0)中心h = spectrum.welch (…);psd (h, x,…,“CenterDC”,真正的); |
赢了=…Noverlap =…Noverlap pwelch (x,赢了,…、“中心”); |
h = spectrum.welch (…);psd (h, x,…、“ConfLevel”p); |
赢了=…Noverlap =…Noverlap pwelch (x,赢了,…ConfidenceLevel, p); |
h = spectrum.welch (…);hPSD = psd (h, x,…);Pxx = hPSD.Data;F = hPSD.Frequencies; |
赢了=…Noverlap =…[Pxx F] = pwelch (x,赢,Noverlap,…); |
h = spectrum.periodogram (…);hPSD = psd (h, x,…、“ConfLevel”p);Pxx = hPSD.Data;F = hPSD.Frequencies;Pxxc = hPSD.ConfInterval; |
赢了=…Noverlap =…[Pxx F, Pxxc] = pwelch (x,赢,Noverlap,…“ConfidenceLevel”,p); |
韦尔奇MSSPECTRUM对象函数替代语法
的spectrum.welch
MSSPECTRUM对象语法在未来将被删除。下表给出了等价的推荐功能语法pwelch
。在修改后的周期图,您使用非默认的窗口矩形窗口。为了说明改进的周期图语法,表使用一个特定的窗口。在每个例子中,x
是输入信号。
弃用的语法 |
推荐的语法 |
---|---|
h =频谱。韦尔奇msspectrum (h (x); |
赢得=汉明(64);pwelch (x,赢,[],“权力”);
|
h = spectrum.welch (“高斯”);msspectrum (h (x);
|
赢得= gausswin (64);pwelch (x,赢,[],“权力”);
|
h = spectrum.welch ({“汉明”,“周期”});msspectrum (h (x); |
赢得=汉明(64“周期”);pwelch (x,赢,[],“权力”); |
nbar = 4;sll = 30;h = spectrum.welch ({“泰勒”、nbar sll});msspectrum (h (x);
|
nbar = 4;sll = -30;赢得= taylorwin(64年,nbar sll);pwelch (x,赢,[],“权力”);
|
segLen = 128;h = spectrum.welch (“汉明”,segLen);msspectrum (h (x);
|
赢得=汉明(128);pwelch (x,赢,[],“权力”);
|
segLen = 128;h = spectrum.welch ({“汉明”,“周期”},…segLen);msspectrum (h (x); |
赢得=汉明(128“周期”);pwelch (x,赢,[],“权力”); |
nbar = 4;sll = 30;segLen = 128;h = spectrum.welch ({“泰勒”sll}, nbar segLen);msspectrum (h (x);
|
nbar = 4;sll = -30;segLen = 128;赢得= taylorwin (segLen、nbar sll);pwelch (x,赢,[],“权力”);
|
segLen = 128;ovlpPct = 50;h = spectrum.welch (“汉明”、segLen ovlpPct);msspectrum (h (x);
|
segLen = 128;赢得=汉明(segLen);ovlpPct = 50;Noverlap =装天花板((ovlpPct / 100) * segLen);Noverlap pwelch (x,赢了,“权力”);
|
segLen = 128;ovlpPct = 50;h = spectrum.welch ({“汉明”,“周期”},…segLen ovlpPct);msspectrum (h (x); |
segLen = 128;ovlpPct = 50;赢得=汉明(segLen,“周期”);Noverlap =装天花板((ovlpPct / 100) * segLen);Noverlap pwelch (x,赢了,“权力”); |
nbar = 4;sll = 30;segLen = 128;ovlpPct = 50;h = spectrum.welch ({“泰勒”nbar sll},…segLen ovlpPct);msspectrum (h (x); |
nbar = 4;sll = -30;segLen = 128;赢得= taylorwin (segLen、nbar sll);ovlpPct = 50;Noverlap =装天花板((ovlpPct / 100) * segLen);Noverlap pwelch (x,赢了,“权力”);
|
h = spectrum.welch (…);msspectrum (h, x,“NFFT”,nfft); |
赢了=…Noverlap =…pwelch (x,赢,Noverlap nfft,“权力”); |
h = spectrum.welch (…);msspectrum (h, x,“Fs”fs); |
赢了=…Noverlap =…pwelch (x,赢,Noverlap, [], fs,“权力”); |
h = spectrum.welch (…);msspectrum (h, x,“NFFT”nfft,“Fs”fs); |
赢了=…Noverlap =…pwelch (x,赢,Noverlap nfft, fs,“权力”); |
h = spectrum.welch (…);msspectrum (h, x,…“FreqPoints”,“用户定义”,…“FrequencyVector”,w); |
赢了=…Noverlap =…pwelch (x,赢得Noverlap f, f,“权力”); |
h = spectrum.welch (…);msspectrum (h, x,…、“SpectrumType”、“双侧”); |
赢了=…Noverlap =…Noverlap pwelch (x,赢了,…“双侧”,“权力”); |
h = spectrum.welch (…);msspectrum (h, x,…,“CenterDC”,真正的); |
赢了=…Noverlap =…Noverlap pwelch (x,赢了,…、“中心”、“权力”); |
h = spectrum.welch (…);msspectrum (h, x,…、“ConfLevel”p); |
赢了=…Noverlap =…Noverlap pwelch (x,赢了,…ConfidenceLevel, p,“权力”); |
h = spectrum.welch (…);hMS = msspectrum (h, x,…);Sxx = hMS.Data;F = hMS.Frequencies; |
[Sxx F] = pwelch (…,“权力”); |
h = spectrum.welch (…);hMS = msspectrum (h, x,…“ConfLevel”,p);Sxx = hMS.Data;F = hMS.Frequencies;Sxxc = hMS.ConfInterval; |
[Sxx F, Sxxc] = pwelch (…ConfidenceLevel, p,“权力”); |
多窗口PSD对象函数替代语法
的spectrum.mtm
对象语法在未来将被删除。下表给出了等价的推荐功能语法pmtm
。在每个例子中,x
是输入信号。
弃用的语法 |
推荐的语法 |
---|---|
hMTM = spectrum.mtm;psd (hMTM x); |
pmtm (x, 4); |
hMTM = spectrum.mtm(西北);psd (hMTM x); |
pmtm (x, NW); |
[E V] =离散长(长度(x),西北);hMTM = spectrum.mtm (E, V);psd (hMTM x); |
[E V] =离散长(长度(x),西北);pmtm (x, E, V); |
hMTM = spectrum.mtm(西北);psd (hMTM x,“Fs”fs);
|
pmtm (x, NW, fs); |
hMTM = spectrum.mtm (E, V);psd (hMTM x,“Fs”fs);
|
pmtm (E x, V, fs); |
hMTM = spectrum.mtm(西北);psd (hMTM x,“Fs”fs,“NFFT”,nfft); |
pmtm (x, NW, nfft fs); |
hMTM = spectrum.mtm (E, V);psd (hMTM x,“Fs”fs,“NFFT”,nfft); |
pmtm (x, E, V, nfft fs); |
hMTM = spectrum.mtm(西北);psd (hMTM x,“FreqPoints”,“用户定义”,…“FrequencyVector”,w); |
pmtm (x, NW, w); |
hMTM = spectrum.mtm (E, V);psd (hMTM x,“FreqPoints”,“用户定义”,…“FrequencyVector”,w); |
pmtm (x, E, V, w); |
hMTM = spectrum.mtm(西北);psd (hMTM x,“FreqPoints”,“用户定义”,…“FrequencyVector”f“Fs”fs); |
pmtm (x, E, V, f, f); |
hMTM = spectrum.mtm (E, V);psd (hMTM x,“FreqPoints”,“用户定义”,…“FrequencyVector”f“Fs”fs); |
pmtm (x, E, V, f, f); |
hMTM = spectrum.mtm (…、“自适应”);psd (hMTM…); |
pmtm (…、“适应”); |
hMTM = spectrum.mtm (…、“特征值”);psd (hMTM…); |
pmtm (…、“特征”); |
hMTM = spectrum.mtm (…,“团结”);psd (hMTM…); |
pmtm (…,“团结”); |
hMTM = spectrum.mtm (…);psd (hMTM…、“SpectrumType”、“双侧”); |
pmtm (…,双侧); |
hMTM = spectrum.mtm (…);psd (hMTM…,“SpectrumType”、“双侧”,…“CenterDC”,真正的); |
pmtm (…、“中心”); |
hMTM = spectrum.mtm (…);psd (hMTM…、“ConfLevel”p); |
pmtm (…、“ConfidenceLevel”p); |
hMTM = spectrum.mtm (…);hPSD = psd (hMTM…);Pxx = hPSD.Data;F = hPSD.Frequencies; |
[Pxx F] = pmtm (…); |
hMTM = spectrum.mtm (…);hPSD = psd (hMTM x,“ConfLevel”,p);Pxx = hPSD.Data;F = hPSD.Frequencies;Pxxc = hPSD.ConfInterval; |
[Pxx F, Pxxc] = pmtm (x,“ConfidenceLevel”,p);
|