hamming window matlab code
    4 次查看(过去 30 天)
  
       显示 更早的评论
    
hi evrybody i need matlab code for hamming window
1 个评论
  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
      
 2012-12-12
        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 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Hamming 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

