adding matrix to every column in other matrix
1 次查看(过去 30 天)
显示 更早的评论
0 个评论
更多回答(1 个)
James Tursa
2013-4-14
bsxfun(@plus,a,b)
2 个评论
James Tursa
2013-4-14
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!