butterworth filter
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I made the simple code for butterworth but i keep getting this error! Butter is not defined! can someone help?
>> order =1; >> sampling_freq=1000; >> cut_off_freq=10; >> [butter_b,butter_a]=butter(order, cut_off_freq/(sampling_freq)/2); ??? Undefined function or method 'butter' for input arguments of type 'double'.
1 Kommentar
Honglei Chen
am 19 Mär. 2012
Please don't post the same question twice. If necessary, you can always update your original question. I've answered this in your original thread
http://www.mathworks.com/matlabcentral/answers/32748-butterworth-filter
Antworten (3)
Wayne King
am 19 Mär. 2012
Hi Sam, do you have the Signal Processing Toolbox installed?
if you enter
>>ver
do you see an entry for Signal Processing Toolbox?
If you enter:
license('test','signal_toolbox')
Do you get a 1?
Wayne King
am 20 Mär. 2012
Hi Sam, You must contact MathWorks for licensing a new toolbox in your installation. And please do follow Honglei's good advice about double posting.
2 Kommentare
Honglei Chen
am 20 Mär. 2012
If you just want to smooth the data, you can do a moving average, e.g., h = 0.25*ones(4,1) produces a 4-points moving average filter and you can filter your data x using conv(h,x).
Daniel Shub
am 20 Mär. 2012
Depending on how many filters you need and their orders, you may be able to calculate the coefficients by hand. You will probably need the signal processing toolbox to do anything useful with the coefficients...
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!