Bandpass Filter Command Question

1 回表示 (過去 30 日間)
Anthony Koning
Anthony Koning 2023 年 4 月 13 日
回答済み: Bora Eryilmaz 2023 年 4 月 13 日
Hi, I'm currently trying to design a bandpass filter to filter a series of input data y between 1-30 Hz. Acording to the syntax for bandpass, y is my x value, and (1,30) is my wpass value, but trying to run the command results in an 'invalid use of parentheses' error. Can someone explain why this is the case?
d = bandpass(y, (1,30));

採用された回答

Bora Eryilmaz
Bora Eryilmaz 2023 年 4 月 13 日
You need to use brackets, not parentheses:
y = rand(200,1);
Fs = 100; % Sampling rate, e.g., 100 Hz
d = bandpass(y, [1,30], Fs);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by