filtering in frequency domain

4 visualizaciones (últimos 30 días)
arash
arash el 24 de Jul. de 2014
Comentada: Honglei Chen el 24 de Jul. de 2014
I have signal say 'data'; i want to cutt off all the frequency above 25 Hz in this signal. what should i do?

Respuesta aceptada

Honglei Chen
Honglei Chen el 24 de Jul. de 2014
Your question is incomplete. You also need to know the sampling rate of the signal. Once you have the sampling rate, together with the cutoff frequency, you can design a filter using, say butter function and then use filter function to filter the signal.
  2 comentarios
arash
arash el 24 de Jul. de 2014
The samplig rate is 0.01 for example;
  1. clc
  2. clear all
  3. N=2048
  4. dt=0.01
  5. a=random('norm',0,1,1,N);
  6. t=0:0.01:(N-1)*0.01;
for signal'a' iwant to cutoff all the frequency above 25hz..
Honglei Chen
Honglei Chen el 24 de Jul. de 2014
so your sampling rate is 100 Hz. In that case, you can design a 4th-order (this is something you can choose but 4 is a good value to start with) Butterworth filter and filter signal x like
[b,a] = butter(4,25/(100/2));
filter(b,a,x)

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by