Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: how apply bsxfun to all the rows of a matrix?
Posted:
Dec 27, 2011 7:00 PM


On Dec 27, 3:30 pm, "Matt J " <mattjacREM...@THISieee.spam> wrote: > Aseman <andali...@gmail.com> wrote in message <430040b9e6124476aa3cd96339899...@u6g2000vbg.googlegroups.com>... > > > How could I repeat the above for all the rows of test, without any > > loop in the code? > > rowDiff=bsxfun(@minus, test, reshape(test.',[1,size(test.')]))
Thanks Matt! I should have learned from the solution you provided to my previous post.



