Path: news.mathworks.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!news.mathforum.org!not-for-mail
From: mahmud <mahmusyubli@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: shifting row  in large matrix
Date: Wed, 25 Feb 2009 02:50:42 EST
Organization: The Math Forum
Lines: 16
Message-ID: <18203389.1235548336327.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1235548336 16551 144.118.30.135 (25 Feb 2009 07:52:16 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Wed, 25 Feb 2009 07:52:16 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:520631

does anyone know how to shift element in a row?

example:

1 2 3 4 5
1 1 1 0 0
5 4 3 2 1

becomes

1 2 3 4 5
0 1 1 1 0
5 4 3 2 1

anyone? or you can show me if there is a function in matlab that can do that.
tq