Borrar filtros
Borrar filtros

Bandpass Filter Command Question

2 visualizaciones (últimos 30 días)
Anthony Koning
Anthony Koning el 13 de Abr. de 2023
Respondida: Bora Eryilmaz el 13 de Abr. de 2023
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));

Respuesta aceptada

Bora Eryilmaz
Bora Eryilmaz el 13 de Abr. de 2023
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);

Más respuestas (0)

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by