1
hann10=hanning(10);
b = repmat(hann10,[1 5]);
smooth10=conv(fragments,b,'same');
然而,這將引發錯誤:
Error using conv (line 27)
A and B must be vectors.
我基本上要平滑fragments
一個包含多個,但同樣大小的列(即100x5 )由相同的hann窗口分開 - 將窗口應用到每列,就好像它是一個單獨的向量。
這樣做的最好方法是什麼?