How do I apply a function to every resulting element of a buffer function?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ilya Krivoshein
le 3 Oct 2022
Réponse apportée : Star Strider
le 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 commentaires
Réponse acceptée
Star Strider
le 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Hamming dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!