adding matrix to every column in other matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
James Tursa
am 14 Apr. 2013
bsxfun(@plus,a,b)
2 Kommentare
James Tursa
am 14 Apr. 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.
Siehe auch
Kategorien
Mehr zu Image Processing and Computer Vision 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!