【matlab】频域滤波函数lpfilt()
2016-08-27 15:02
253 查看
【matlab】频域滤波函数lpfilt()
function [ H, D ] = lpfilter( type,M,N,D0,n ) %LPFILTER creates the transfer function of a lowpass filter. % Detailed explanation goes here %use function dftuv to set up the meshgrid arrays needed for computing %the required distances. [U, V] = dftuv(M,N); %compute the distances D(U,V) D = sqrt(U.^2 + V.^2); %begin filter computations switch type case 'ideal' H = double(D <= D0); case 'btw' if nargin == 4 n = 1; end H = 1./(1+(D./D0).^(2*n)); case 'gaussian' H = exp(-(D.^2)./(2*(D0^2))); otherwise error('Unkown filter type'); end
相关文章推荐
- Matlab中hist、 histc、bar函数的用法及区别:
- 论文中图片加方框并且放大显示 matlab代码
- [资料]Adams-matlab联合仿真
- 论文中图片加方框 matlab代码
- matlab 常用希腊字母
- Matlab 2013b 在El Capitan 中无法使用问题解决
- Matlab中生成圆形和环形模板
- 多变异位自适应遗传算法(MMAdapGA)的算法原理、算法步骤和matlab实现
- 利用Matlab设计滤波器(FDAT)
- 在win7的下对matconvnet进行配置(CPU)
- Matlab问答day9
- ubuntu matlab opencv ffmpeg
- 第三次培训 matlab代码
- Matlab批量读取元胞数组中数据保存到txt文件中(WIDER FACE数据集中,读取人脸标注矩形框信息)
- caffe时cmake显示找不到matlab
- matlab pso工具箱和自己写
- 共轭梯度下降及matlab简单实现
- MATLAB Compiler VS MATLAB Coder
- MATLAB曲线绘制
- 垃圾邮件二分类 NaiveBayes v.s SVM (matlab)