what is zero padding?

5 次查看(过去 30 天)
jiya quin
jiya quin 2015-10-15
编辑: jiya quin 2015-10-15
In math lab can be other numbers or only zero?

回答(1 个)

Steven Lord
Steven Lord 2015-10-15
You haven't defined a variable named hamming in your code, but there IS a function named hamming in Signal Processing Toolbox. Therefore MATLAB interpreted this line of code:
wy = y'*hamming:N-1;
as calling that function with 0 input arguments and using that in the calculation of wy. But the HAMMING function from Signal Processing Toolbox requires at least one input, the number of points in the window.
Either define the variable named hamming before you try to use it or call HAMMING with one or two input arguments (the documentation describes the meaning of each input argument.)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by