psdopts matlab,Create an options object for output noise PSD computation

该内容介绍了如何使用MATLAB的noisepsdopts函数来配置计算滤波器输出噪声功率谱密度(PSD)的选项。示例中,filt1和filt2是通过不同设计方法创建的低通滤波器,分别为butter和cheby2。opts对象用于设置噪声PSD计算的条件,包括采样频率、频率点数、是否归一化等。最终,这些配置被应用于noisepsd函数,对filt1和filt2进行噪声PSD计算。
摘要由CSDN通过智能技术生成

Use the noisepsdopts function to set options to compute the output noise PSD. filt1 and filt2 are lowpass filters that use different design methods. The opts object makes it easier to set the same conditions for the noise PSD computation in the noisepsd function.

d = fdesign.lowpass

d =

lowpass with properties:

Response: 'Lowpass'

Specification: 'Fp,Fst,Ap,Ast'

Description: {4x1 cell}

NormalizedFrequency: 1

Fpass: 0.4500

Fstop: 0.5500

Apass: 1

Astop: 60

filt1 = design(d,'butter','Systemobject',true)

filt1 =

dsp.BiquadFilter with properties:

Structure: 'Direct form II'

SOSMatrixSource: 'Property'

SOSMatrix: [13x6 double]

ScaleValues: [14x1 double]

InitialConditions: 0

OptimizeUnityScaleValues: true

Show all properties

filt2 = design(d,'cheby2','Systemobject',true)

filt2 =

dsp.BiquadFilter with properties:

Structure: 'Direct form II'

SOSMatrixSource: 'Property'

SOSMatrix: [5x6 double]

ScaleValues: [6x1 double]

InitialConditions: 0

OptimizeUnityScaleValues: true

Show all properties

opts = noisepsdopts(filt1)

opts =

struct with fields:

FreqPoints: 'All'

NFFT: 512

NormalizedFrequency: true

Fs: 'Normalized'

SpectrumType: 'Onesided'

CenterDC: false

ConfLevel: 'Not Specified'

ConfInterval: []

opts.NFFT = 256; % Same as set(opts,'nfft',256).

opts.NormalizedFrequency = false;

opts.Fs = 1.5e3;

opts.CenterDC = true

opts =

struct with fields:

FreqPoints: 'All'

NFFT: 256

NormalizedFrequency: false

Fs: 1500

SpectrumType: 'Twosided'

CenterDC: true

ConfLevel: 'Not Specified'

ConfInterval: []

With opts configured as needed, use it as an input argument for the noisepsd function.

noisepsd(filt1,20,opts)

aa48a490d53eb4f258dcfae58d8b19b9.png

noisepsd(filt2,20,opts)

08205597f124c9e59064d49307435064.png

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值