Write a MATLAB function called w = my_window(N, type, beta) to create w, a row vector of N window…

Write a MATLAB function called w = my_window(N, type,
beta) to create w, a row vector of N window samples. Let type designate any of
the three windows in Table 5.2 plus the boxcar window, and let M beta designate
the parameter _ for the Kaiser window. (Note: You may use the MATLAB function nargin to determine
whether there are two or three input
arguments.) Plot all four windows in a single figure for N = 15, using _ = 7 for the Kaiser window. Make
connected discrete plots using a
different symbol for each window, and print a legend on your plot.