hi everry one , this program is filter ? if it is filter what is the type of filter ? (YOU CAN ADD SOME COMMENT )

1 次查看(过去 30 天)
global nfile A flag
[fil pth]=uigetfile('.dat','Enter File Name Wich You Want to Work')
file=[pth fil];
fid=fopen(file,'r');
nfile=fread(fid);
nfile=imresize(nfile,[183 1]);% it is for compression?
axes(handles.axes1)
plot(nfile,'-'), title('Original Signal')
figure(1),plot(nfile,'-'), title('Original Signal')
z=zeros(100,1);
A=[z;nfile;z]; %it is filter?
axes(handles.axes2)
plot(A,'-'),title('Original Signal With Pad')
figure(2),plot(A,'-'),title('Original Signal With Pad')
flag=2;

回答(1 个)

Image Analyst
Image Analyst 2016-12-7
It's not a filter. It simple resizes the signal to be exactly 183 elements long and slaps 100 zeros on either end of it. I don't know why they wanted/needed to do that. The only way you could say it was a filter was if the signal was longer than 183 elements and you squeezed it down - that's like a low pass filter but I don't think their intent was so much low pass filtering as it was resizing.
  9 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Filter Banks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by