I am using the following code to plot a window:
m = ((33-1)/2) n = -m:m w = 0.54 + 0.46 *cos(pi*n/m) stem(0: numel(w)-1, w)
This is giving the following plot:
Now I tried zero-padding the window with 200. I used the following code:
m = ((33-1)/2) n = -m:m w = 0.54 + 0.46 *cos(pi*n/m) w_zp = padarray(w, 200, 'pre') stem(0: numel(w_zp)-1, w_zp)
Why is this not working please?