From: Arie Driga on
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
"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