How do I apply a function to every resulting element of a buffer function?
2 views (last 30 days)
Show older comments
Ilya Krivoshein
on 3 Oct 2022
Answered: Star Strider
on 3 Oct 2022
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 Comments
Accepted Answer
Star Strider
on 3 Oct 2022
‘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 Comments
More Answers (0)
See Also
Categories
Find more on Hamming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!