From: Leonidas289 on 14 Jan 2010 10:25 Hi you, First, we have matrix a=[ 1 2 3 4 5 6]. I want to take values from end to begin (like that: 6 5 4 3 2 1). How can I do in Matlab window? Please help me. Thanks & best regard!
From: Wayne King on 14 Jan 2010 10:38 "Leonidas289 " <phamvanhongphuc(a)yahoo.com> wrote in message <hind0h$6i5$1(a)fred.mathworks.com>... > Hi you, > First, we have matrix a=[ 1 2 3 4 5 6]. I want to take values from end to begin (like that: 6 5 4 3 2 1). How can I do in Matlab window? > Please help me. > Thanks & best regard! Hi >>doc fliplr or >>doc flipud for a column vector Wayne
From: Leonidas289 on 14 Jan 2010 10:43 "Wayne King" <wmkingty(a)gmail.com> wrote in message <hindot$q42$1(a)fred.mathworks.com>... > "Leonidas289 " <phamvanhongphuc(a)yahoo.com> wrote in message <hind0h$6i5$1(a)fred.mathworks.com>... > > Hi you, > > First, we have matrix a=[ 1 2 3 4 5 6]. I want to take values from end to begin (like that: 6 5 4 3 2 1). How can I do in Matlab window? > > Please help me. > > Thanks & best regard! > > Hi > > >>doc fliplr > > or > >>doc flipud > > for a column vector > > Wayne Thanks, I have just found out : )
From: Matt Fig on 14 Jan 2010 10:44 Also a(end:-1:1)
|
Pages: 1 Prev: Build a circle as the template Next: difficulty in recognizing a variable in a function |