ifilter: Interactive Fourier filter function, version 4.1

버전 1.6.0.0 (17.4 KB) 작성자: Tom O'Haver
Keyboard-operated interactive Fourier filter function for time-series signals.
다운로드 수: 1.4K
업데이트 날짜: 2014/12/22

라이선스 보기

ifilter(x,y) or ifilter(y) or ifilter([x y]) or ry=ifilter(x,y,center,width,shape,plotmode,filtermode)
Keyboard-operated interactive Fourier filter function for time-series signal (x,y), with keyboard controls that allow you to adjust the filter parameters continuously while observing the effect on your signal dynamically. Optinal input arguments set the intital values of center frequency, filter width, shape, plotmode (1=linear; 2=semilog frequency; 3=semilog amplitude; 4=log-log) and filtermode (Band-pass,Lowpass, Highpass, Bandpass, Band-reject, Comb pass, and Comb reject). Returns the filtered signal. Press K to list keyboard commands.
T. C. O'Haver (toh@umd.edu), Version 4 adds comb pass and comb reject filter modes.
Example 1:
x=0:100;y=sin(x);ifilter(x,y);
Example 2 uses optional input arguments to set intital values:
x=0:(1/8000):.3;
y=(1+12/100.*sin(2*47*pi.*x)).*sin(880*pi.*x)+(1+12/100.*sin(2*20*pi.*x)).*sin(2000*pi.*x);
ry=ifilter(x,y,132,31,18,3,'Band-pass');

KEYBOARD CONTROLS when figure window is topmost:
Adjust center frequency.......Coarse: < and >
Fine: left and right cursor arrows
Adjust filter width...........Coarse: / and "
Fine: up and down cursor arrows
Filter shape..................A,Z (A more rectangular, Z more Gaussian)
Filter mode...................B=bandpass; N or R=notch (band reject); H=High-pass; L=Low-pass; C-Comb pass; V=Comb reject.
Select plot mode..............1=linear; 2=semilog frequency
3=semilog amplitude; 4=log-log
Print keyboard commands.......K Pints this list
Print filter parameters.......Q Prints input arguments: center,width,shape,plotmode,filtermode
Print current settings........T Prints list of current settings
Switch SPECTRUM X-axis scale..X switch between frequency and period x scale on POWER SPECTRA
Switch OUTPUT Y-axis scale....Y switch between fixed or variable y scale on output plot
Play output as sound..........P or Enter
Save output as .mat file......S

인용 양식

Tom O'Haver (2024). ifilter: Interactive Fourier filter function, version 4.1 (https://www.mathworks.com/matlabcentral/fileexchange/31646-ifilter-interactive-fourier-filter-function-version-4-1), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.6.0.0

Fixed a bug in the 'center' and 'width' input arguments (thanks to Forrest for the heads-up). Also added another example.

1.5.0.0

Version 4 adds comb pass and comb reject filter modes.

1.4.0.0

Version 3 adds X key to switch between frequency and period x scale on power spectrum plot.

1.3.0.0

Version 2, October, 2011. Additions
include increased input argument flexibility; 'Y' key chages y-axis
$ scale on OUTPUT plot; 'T' key prints current settings.

1.1.0.0

Reformatted description

1.0.0.0