Error using fdesign.notch

2 ビュー (過去 30 日間)
user86753
user86753 2021 年 2 月 15 日
回答済み: Star Strider 2021 年 2 月 15 日
I'm trying to test the notch filter code referenced here, https://www.mathworks.com/help/dsp/ref/fdesign.notch.html.
F0 = 60; % interference is at 60 Hz
Fs = 3000; % sampling frequency is 3000 Hz
notchspec = fdesign.notch('N,F0,Q',2,F0,10,Fs);
notchfilt = design(notchspec,'SystemObject',true);
fvtool(notchfilt,'Color','white');
I have the Signal Processing Toolbox but I'm getting the error below.
Unable to resolve the name fdesign.notch.
Signal Processing Toolbox Version 8.5 (R2020b)

採用された回答

Star Strider
Star Strider 2021 年 2 月 15 日
The fdesign.notch function is in the DSP System Toolbox.
An appropriate Signal Processing Toolbox equivalent function is bandstop.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFilter Design についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by