主要内容

freqrespopts

为频率响应估计创建一个选项对象

描述

例子

选择= freqrespopts (sysobj使用过滤器System对象™中的当前设置来创建一个选项对象。这个对象包含频率响应估计的选项。你通过了选择对象的输入参数freqrespest函数指定输入参数的值。

freqrespopts允许您使用相同的设置freqrespest使用多个过滤器,而不指定所有的参数作为输入参数freqrespest

例子

全部折叠

本示例使用freqrespopts函数来设置freqrespest函数。高清hd2是采用不同设计方法的带通滤波器。的选择对象使得在使用时更容易为频率响应估计设置相同的条件freqrespest函数与不同的过滤器对象..

d = fdesign.bandpass (, fst1 fp1 fp2, fst2 ast1,美联社,ast2”...0.25, 0.3, 0.45, 0.5,, 0.1, 60);高清=设计(d,“黄油”“SystemObject”,真正的)
高清= dsp。SOSMatrixSource: 'Property' SOSMatrix: [18x6 double] ScaleValues: [19x1 double] InitialConditions: 0 OptimizeUnityScaleValues: true显示所有属性
hd2 =设计(d,“cheby2”“SystemObject”,真正的)
hd2 = dsp。SOSMatrixSource: 'Property' SOSMatrix: [9x6 double] ScaleValues: [10x1 double] InitialConditions: 0 OptimizeUnityScaleValues: true显示所有属性
选择= freqrespopts(高清)
opts = struct with fields: FreqPoints: 'All' NFFT: 512 NormalizedFrequency: true Fs: 'Normalized' SpectrumRange: 'Half' CenterDC: false
选择。NFFT = 256;%与set(opts,'nfft',256)相同。选择。NormalizedFrequency = false;选择。fs = 1.5 e3;选择。CenterDC = true
opts = struct with fields: FreqPoints: 'All' NFFT: 256 NormalizedFrequency: false Fs: 1500 SpectrumRange: 'Whole' CenterDC: true

选择对象的输入参数freqrespest函数。

(h2 w2) = freqrespest (hd2 20选择);[h1, w1] = freqrespest(高清20选择);

输出参数

全部折叠

对象,其中包含频率响应估计的选项,返回为pseudospectrum对象。你通过了选择对象的输入参数freqrespest函数指定输入参数的值。

介绍了R2011a