hi everry one , this program is filter ? if it is filter what is the type of filter ? (YOU CAN ADD SOME COMMENT )
1 view (last 30 days)
Show older comments
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;
0 Comments
Answers (1)
Image Analyst
on 7 Dec 2016
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 Comments
See Also
Categories
Find more on Filter Banks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!