Path: news.mathworks.com!not-for-mail
From: "alan dinno" <alan_dinno@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Consecutive Numbers !
Date: Fri, 21 Dec 2007 00:37:47 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <fkf1sr$a05$1@fred.mathworks.com>
Reply-To: "alan dinno" <alan_dinno@hotmail.com>
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 1198197467 10245 172.30.248.35 (21 Dec 2007 00:37:47 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 21 Dec 2007 00:37:47 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1192926
Xref: news.mathworks.com comp.soft-sys.matlab:443249


Hi -

If V is a col vector, I want H to be the number of highest 
consecutive sequential count in V.

Example: If V=[22; 23; 24; 40; 44; 50; 51; 52; 53]
Then, since the highest consecutive count comes from 
numbers 50,51,52 and 53,it means H=4.

Another example:
 If V=[6; 9; 14; 15; 16; 50; 58; 52; 53], then since the 
highest consecutive count comes from 14,15,16, it means 
H=3.

Thanks
al