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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Dynamic System Models에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2023년 4월 13일

답변:

2023년 4월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by