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


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
how apply bsxfun to all the rows of a matrix?
Replies:
2
Last Post:
Dec 27, 2011 7:00 PM




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.



