Butter bandpass filter - why the Wp 0.4 doesn´t works and 0.6 does?
6 views (last 30 days)
Show older comments
I am analyzing an acelerometer data signal. I have to apply a bandpass Butterworth filter with a Wp value (low frequency pass) of 0.4 hz.
I paste the matlab code.
dat=load('imput_data.txt');
orden=4;
f=[0.4/500 10/500];
%f=[0.6/500 10/500];
[b,a]=butter(orden,f,'bandpass');
result(:,1)=filter(b,a,dat(:,1));
I do not really know why the filter does not work for a wp=0.4 and it does for wp=0.6.
1 Comment
Accepted Answer
nani
on 28 Nov 2012
6 Comments
Jan
on 30 Nov 2012
Edited: Jan
on 30 Nov 2012
@nani: This is not the purpose of the FileExchange.
I'm asking the 3rd and last time for the application of a proper code formatting. A formatted code would encourage forum users to care about your questions.
Currently this thread conatins a lot of DON'Ts in this forum:
- "does not work" without details
- Code added in an answer, although this contains in the original question
- Answer posted instead of a comment
- This answer is accepted, such that the thread is marked as solved, although it is not
- A link is posted, which does not work. Instead of removing it, a further comment is added.
- Further code is posted in the FileExchange, but this is not its purpose.
- And still the question is not clear.
I suggest to restart: You can create a new thread, ask as clear as possible, add a screenshot (instructions can be found in the forum), and finally delete this thread and the FEX submission, when it will appear (perhaps on Monday).
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!