From: yusuf awal on
Hi,
I have a matrix A=rand(3,5), then I'd like to transpose each row from A continuously and become 15x1 matrix. how to do that?
thanks
From: Srikanth on
On Mar 15, 7:40 pm, "yusuf awal" <awaludin...(a)yahoo.com> wrote:
> Hi,
> I have a matrix A=rand(3,5), then I'd like to transpose each row from A continuously and become 15x1 matrix. how to do that?
> thanks

Why not just do rand(15,1)?
In any case, you might do this: A(:) - this will be a vector of
length 15. (If you wanted to concatenate the other way, first
transpose and then use B(:), where B stores the transpose of A )

hth
From: John D'Errico on
"yusuf awal" <awaludinium(a)yahoo.com> wrote in message <hnmr2s$1lu$1(a)fred.mathworks.com>...
> Hi,
> I have a matrix A=rand(3,5), then I'd like to transpose each row from A continuously and become 15x1 matrix. how to do that?
> thanks

help reshape
help transpose

John