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窗口分开 - 将窗口应用到每列,就好像它是一个单独的向量。
这样做的最好方法是什么?