How do I apply a function to every resulting element of a buffer function?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ilya Krivoshein
am 3 Okt. 2022
Beantwortet: Star Strider
am 3 Okt. 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 Kommentare
Akzeptierte Antwort
Star Strider
am 3 Okt. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Hamming finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!