Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
Tung
Tung on 11 Apr 2013
Closed: MATLAB Answer Bot on 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 Comment
Jan
Jan on 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?

Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!