This doesn't seem to be possible anymore: http://stackoverflow.com/questions/28722723/matlab-bsxfun-no-longer-faster-than-repmat. Any chance of updating the problem with looser time tolerances?
This problem is meanless!
The solutions passed are not always fast than repmat, or just cheat(ex. using "tic")
Back to basics 23 - Triangular matrix
638 Solvers
Return unique values without sorting
597 Solvers
98 Solvers
208 Solvers
415 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!