<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

Matrix/

zero_one.pro

Send back a vector or a matrix constituted of 0 and 1 in alternation

topzero_one Matrix

result = zero_one(n1, n2)

Return value

an array of n1 dimension or n1xn2 dimensions

Parameters

n1        in required type: integer

number of elements in the first dimension

n2        in type: integer

number of elements in the second dimension

Examples

IDL> a=zero_one(3) IDL> help,a A FLOAT = Array[3] IDL> print,a 0.00000 1.00000 0.00000 IDL> a=zero_one(2,3) IDL> help,a A FLOAT = Array[2, 3] IDL> print,a 0.00000 1.00000 1.00000 0.00000 0.00000 1.00000

Version history

Version

$Id: zero_one.pro 373 2008-08-08 14:11:31Z pinsard $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) 1/12/98

Statistics

McCabe cyclic 5
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.