How do I apply a function to every resulting element of a buffer function?
3 次查看(过去 30 天)
显示 更早的评论
I've split the sound signal into frames of 256 length using buffer function.
Now I have 256x544 "frames" variable with 256 rows and 544 columns inside when I see it through "Open Selection".
How do I apply a function, e.g. hamming(256), to each column?
0 个评论
采纳的回答
Star Strider
2022-10-3
‘How do I apply a function, e.g. hamming(256), to each column?’
Do an element-wise multiplication —
v = randn(256,2)
vh = v.*hamming(256)
.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hamming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!