Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!w39g2000prb.googlegroups.com!not-for-mail
From: swgillan <swgillan@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Reversing a row matrix
Date: Fri, 10 Oct 2008 23:05:42 -0700 (PDT)
Organization: http://groups.google.com
Lines: 26
Message-ID: <988983f9-5513-4057-b431-2fb44a707ca7@w39g2000prb.googlegroups.com>
References: <gcnqe3$s7h$1@fred.mathworks.com>
NNTP-Posting-Host: 24.108.200.25
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1223705142 21693 127.0.0.1 (11 Oct 2008 06:05:42 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 11 Oct 2008 06:05:42 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w39g2000prb.googlegroups.com; posting-host=24.108.200.25; 
	posting-account=oG0_2QoAAADs2vBCPqAYFyNKpnhzubZa
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) 
	Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:494659


On Oct 10, 7:56=A0am, "Emeka Obe" <obe...@gmail.com> wrote:
> Hi All,
>
> I need to reverse a matrix as follows:
> If x=3D[1 3 8 20 100 121],
>
> how do I get a matrix
>
> y=3D[121 100 20 8 3 1]
>
> An answer is needed, please.
>
> Emeka

>> x=3D[1 3 8 20 100 121]

x =3D

     1     3     8    20   100   121
>> y =3D fliplr(x)

y =3D

   121   100    20     8     3     1

Hope that helps