www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/ApplyHammingWindowToTheInputExample.m
%% Apply Hamming Window To the Input %% % *Note*: This example runs only in R2016b or later. If you are using an % earlier release, replace each call to the function with the equivalent % |step| syntax. For example, myObject(x) becomes step(myObject,x). %% hwin = dsp.Window( ... 'WindowFunction', 'Hamming', ... 'WeightsOutputPort',true); x = rand(64,1); [y, w] = hwin(x); %% % View the window's time and frequency domain responses wvtool(w);