From: yusuf awal on 15 Mar 2010 22:40 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 15 Mar 2010 23:12 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 15 Mar 2010 23:15 "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
|
Pages: 1 Prev: syntax problem with LOAD and strings Next: generaion of pink noise in MATLAB |