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;
댓글 수: 0
답변 (1개)
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 Center 및 File Exchange에서 Filter Banks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!