Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Reversing a row matrix
Date: Sat, 12 Sep 2009 13:25:04 +0000 (UTC)
Organization: BITS
Lines: 20
Message-ID: <h8g7ff$md$1@fred.mathworks.com>
References: <gcnqe3$s7h$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1252761904 717 172.30.248.35 (12 Sep 2009 13:25:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 12 Sep 2009 13:25:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1980168
Xref: news.mathworks.com comp.soft-sys.matlab:569945


y=flipdim(x,2)

see help flipdim.m for more info.

Srikumar


"Emeka Obe" <obeway@gmail.com> wrote in message <gcnqe3$s7h$1@fred.mathworks.com>...
> Hi All,
> 
> I need to reverse a matrix as follows:
> If x=[1 3 8 20 100 121], 
> 
> how do I get a matrix 
> 
> y=[121 100 20 8 3 1]
> 
> An answer is needed, please.
> 
> Emeka