design a FIR low pass filter using Kaiser window
hn=hd.*wk % *(HERE I AM GETTING THIS ERROR)*
those two matrices have the same dimensions of 27..still why this error?
No products are associated with this question.
You have to transpose either wk or hd, because one is a column vector and the other a row vector. E.g.
hn = hd .* wk.'
I don't have the Signal Processing Toolbox, so I can't execute the kaiser() function. However, the documentation indicates that it will output a column vector. Your vector hd is a row vector, so it does not actually have the same dimension. You need to transpose one of them.
Don't use dot product,edit that line like this
but you will get single value after multiplying,but 'freqz' function requires vector as a input.
if you need vector then do like this, you will get waveform.
hn=hd. * wk ' ;