hi evrybody i need matlab code for hamming window

댓글 수: 1

qamar alshraideh
qamar alshraideh 2016년 12월 19일
편집: Walter Roberson 2020년 6월 7일
Built in function ::
M=30; % length
wc1=.05*pi;
n=0:1:(M-1);
h1 = (wc1/pi)*sinc(wc1/pi*n);
ham=h1.*hamming(M)'; %here we dont need to shift
x=n/pi;
x=x/pi;
plot(x,abs(fft(ham)));
title('Magnitude Response');
xlabel('frequency in pi units')

댓글을 달려면 로그인하십시오.

 채택된 답변

John Petersen
John Petersen 2012년 12월 12일

1 개 추천

if x is an n-element input signal and t is the time scale
w = 0.54 - 0.46*cos(2*pi*t/(n-1));
wx = x.*w;

추가 답변 (0개)

카테고리

질문:

2012년 12월 11일

편집:

2020년 6월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by