From: Leonidas289 on
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
"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
"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
Also

a(end:-1:1)