Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to filter a signal..plz help me..
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Jan
2013-4-11
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?
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!