%% Generate and Apply Hamming Window
% The following model uses the Window Function block to generate and apply 
% a Hamming window to a 3-dimensional input array.
%
% In this example, set the *Operation* parameter of the <docid:dsp_ref#f6-480979 Window Function> block 
% to |Generate and apply window|. The block provides two outputs: the window vector, _Window_ at the *Win* port, 
% and the result of the multiplication, _simout_ at the *Out* port. 
%
% Copyright 2019 The MathWorks, Inc.

%% 
% Open the model |ex_windowfunction_ref|.
model = 'ex_windowfunction_ref';
open_system(model)
%%
% Run the model.
sim(model)
%% 
% The length of the first dimension of the input array is 10, so the *Window Function* block 
% generates and outputs a Hamming window vector of length 10. To see the 
% window vector generated by the *Window Function* block, type |Window| at 
% the MATLAB(R) command line.
Window
%%
% To see the result of the multiplication, type |simout| at the MATLAB
% command line.
simout