Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Reading from beginning and end of an array and repeat
Date: Sun, 22 Feb 2009 17:00:22 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 13
Message-ID: <gns0b6$9f7$1@fred.mathworks.com>
References: <33098052.1235314424604.JavaMail.jakarta@nitrogen.mathforum.org> <gnruiq$cr2$1@fred.mathworks.com> <gnrvci$6e5$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1235322022 9703 172.30.248.37 (22 Feb 2009 17:00:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 22 Feb 2009 17:00:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:520010

input=[162 169 172 184 199 205 220 240 280 320]
outputlong = reshape([input;input(end:-1:1)],1,[])

% Now take however many you want.

output = outputlong(1:5)






byiGy[[ibfnyc]hyfiny[\hb?o[sy_[[p(4Soe:y!ni\a]ijg[_i_!jyg_c