From: Hasan Yousuf on 3 May 2010 04:53 Hi! I want to change rows of matrix randomly. How can we do that? a = [4 5 6 8; 9 3 2 4; 5 9 9 3; 4 9 4 7] a = 4 5 6 8 9 3 2 4 5 9 9 3 4 9 4 7 I want to shuffle row 2, 3 and 4 randomly. Kindly help me.
From: Bruno Luong on 3 May 2010 06:33 "Hasan Yousuf" <cancer216(a)hotmail.com> wrote in message <hrm2th$5bt$1(a)fred.mathworks.com>... > Hi! > > I want to change rows of matrix randomly. How can we do that? > a = [4 5 6 8; 9 3 2 4; 5 9 9 3; 4 9 4 7] > > a = > 4 5 6 8 > 9 3 2 4 > 5 9 9 3 > 4 9 4 7 > > I want to shuffle row 2, 3 and 4 randomly. Kindly help me. help RANDPERM Bruno
From: James Tursa on 3 May 2010 12:55 "Hasan Yousuf" <cancer216(a)hotmail.com> wrote in message <hrm2th$5bt$1(a)fred.mathworks.com>... > Hi! > > I want to change rows of matrix randomly. How can we do that? > a = [4 5 6 8; 9 3 2 4; 5 9 9 3; 4 9 4 7] > > a = > 4 5 6 8 > 9 3 2 4 > 5 9 9 3 > 4 9 4 7 > > I want to shuffle row 2, 3 and 4 randomly. Kindly help me. You can also try this FEX submission by Jan Simon: http://www.mathworks.com/matlabcentral/fileexchange/27076-shuffle James Tursa
|
Pages: 1 Prev: My GUI window is larger than my laptop screen! Next: Redirecting standard output ? |