function WMKIARRY, a, b, c ;+ ; NAME: ; WMKIARRY ; ; PURPOSE: ; This function creates an INTEGER INDEX array with the same notation that ; Matlab uses in creating one, i.e. y = a:b:c. ; ; CATEGORY: ; Wavelets ; ; CALLING SEQUENCE: ; y = WMKIARRY( a, b, c) ; ; INPUTS: ; a: index of 1st element. ; b: increment (usually 1). ; c: index of last element. ; ; OUTPUTS: ; y: An array of index values. ; ; NOTES: ; Matlab indices for arrays begin with 1, IDL begins ; with 0. This routine assumes that the array created ; has index-1 of what Matlab uses. I.e. If Matlab ; assumes an index array of: [2,6,10,14,18], this ; routine creates: [1,5,9,13,17]. ; ; SEE ALSO: ; wmkfarry (arrays of fractional values) ; ; EXAMPLE: ;IDL> t=WMKIARRY(1,1,5) ;IDL> print, t ; 0 1 2 3 4 ; ; MODIFICATION HISTORY: ; Written by: Amara Graps November, 1994 ; copyright (c) Amara Graps 1995, 1996. ;- ;number of elements in array num = FIX((c - a)/b) + 1 indx_arr = a + INDGEN(num) * b - 1 RETURN, indx_arr END ;of function WMKIARRY ;*************************************************************************