Path: news.mathworks.com!not-for-mail
From: "Uwe Gallaun" <uwe.gallaun@stud.unileoben.ac.at>
Newsgroups: comp.soft-sys.matlab
Subject: Simplify an array
Date: Wed, 21 Nov 2007 08:22:18 +0000 (UTC)
Organization: Montanuniversit&#228;t
Lines: 32
Message-ID: <fi0prq$r33$1@fred.mathworks.com>
Reply-To: "Uwe Gallaun" <uwe.gallaun@stud.unileoben.ac.at>
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 1195633338 27747 172.30.248.37 (21 Nov 2007 08:22:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Nov 2007 08:22:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1185800
Xref: news.mathworks.com comp.soft-sys.matlab:438633


dear matlab users

array=
[1] [2]
[3] [4]
[5] [7]
[6] [7]
[7] [8]
[9] [10]
[10][11]
now i'm trying to look if the numbers in the first column
growing with increment 1. 
as result i want to display this array:
result=
[1] [2]
[3] [4]
[5] [8]
[9] [11]

for example: 
three points 
[5] [7]
[6] [7]
[7] [8]
i'm trying to simplify it to get the start and the end:
[5] [8]

how can i get this result-array?

thanx