My professor gave me some matlab script in which I found the following line:
differences = bsxfun(@minus, A, B);
where A is of size [200,50] and B is of size [1,50]. The documentation and forums didn't give me the answer I'm looking for. My current understanding is that every column of A matrix gets subtracted with B matrix. Is my understanding correct? Currently I don't have matlab installed which makes it a bit problematic to test myself :)
From Octave doc:
Sounds like it just expands B from [1,50] to [200,50] in the obvious way (i.e. replicating the first row of B 200 times) to make a matrix C and then performs A - C in this scenario.
Also, off-topic.