comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Counting the lengths of continuous numbers in an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Counting the lengths of continuous numbers in an array [message #61829] Fri, 08 August 2008 14:05
andy.mcneel is currently offline  andy.mcneel
Messages: 3
Registered: August 2008
Junior Member
Howdy folks.

Say I have the following array: [1, 2, 3, 4, 7, 8, 11, 13, 14, 17,
18, 19]

How would I tell IDL to go through this array and return the array [4,
2, 1, 2, 3].....the lengths of the continuous groups of numbers in the
array?

Thanks!
-Andy McNeel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: My last day at work -- final visualizations - for fun
Next Topic: Re: Provinding files for VM-Application

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:22:33 PDT 2025

Total time taken to generate the page: 1.59944 seconds