Prev: how to access the ith output variable of a function
Next: write "on the fly" into the OutputBuffer with engEvalString(...)?
From: Arie Driga on 5 May 2010 16:35 I have two vectors: A=(1x11) and B is (1x2) I would like to make a matrix (2x11) the first row is each cell in A divided by B(1,1) the second row us each cell in A divided by B(1,2)
From: James Tursa on 5 May 2010 17:19
"Arie Driga" <a_driga(a)yahoo.com> wrote in message <hrskq9$brb$1(a)fred.mathworks.com>... > I have two vectors: > A=(1x11) > and B is (1x2) > > I would like to make a matrix (2x11) > the first row is each cell in A divided by B(1,1) > the second row us each cell in A divided by B(1,2) bsxfun(@rdivide,A,reshape(B,[],1)) James Tursa |