Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to filter a signal..plz help me..

1 Ansicht (letzte 30 Tage)
Tung
Tung am 11 Apr. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi all, I have a question and I need your help.. I make a file that:
%----------------------------------------------------------
fs = 100;
t = 0:1/fs:1;
x = sin(2*pi*t*3)+.25*sin(2*pi*t*40);
b = ones(1,10)/10; % 10 point averaging filter
y = filtfilt(b,1,x); % Noncausal filtering
yy = filter(b,1,x); % Normal filtering
plot(t,x,t,y,'--',t,yy,':')
%-----------------------------------------------------------
It will be Ok if "fs" is 100.When "fs" is 10000.It isn't smooth with "y" and "yy"...What do I have to do? Plz help me... thank all..
  1 Kommentar
Jan
Jan am 11 Apr. 2013
What do you have to do to achieve what?
You have examined the behaviour of two filter methods to two different signals and see a difference. But how could we suggest a change without knowing, what you want to change? Where is the problem?

Antworten (0)

Diese Frage ist geschlossen.

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by