adding matrix to every column in other matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
0 commentaires
Réponse acceptée
Plus de réponses (1)
James Tursa
le 14 Avr 2013
bsxfun(@plus,a,b)
2 commentaires
James Tursa
le 14 Avr 2013
I haven't tested bsxfun much, but I am not surprised by the timing. I have read many accounts here for various problems and several times it has come up that explicit formulations in one way or another beat bsxfun for speed. For small problems like this one the timing is likely irrelevant anyway.
Voir également
Catégories
En savoir plus sur Image Processing and Computer Vision 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!