uniq

From DavinciWiki
Jump to: navigation, search

Description

Get the uniq values associated from a one dimensional input array.

Arguments and Return Values

Arguments: One dimensional numerical array

Return Value: Numerically sorted unique values from the one dimensional array

Usage

Syntax: uniq(input)

input - a one dimensional numerical array with the data on any axis.

Examples

dv> a=create(10,1,1,start=1)
10x1x1 array of int, bsq format [40 bytes]
1       2       3       4       5       6       7       8       9       10
 
dv> b=create(10,1,1,start=5)
10x1x1 array of int, bsq format [40 bytes]
5       6       7       8       9       10      11      12      13      14

dv> c=cat(a,b,axis=x)
20x1x1 array of int, bsq format [80 bytes]
1       2       3       4       5       6       7       8       9       10      
5       6    7     8       9       10      11      12      13      14

dv> d=uniq(c)
14x1x1 array of int, bsq format [56 bytes]
1       2       3       4       5       6       7       8       9       10      11      12    13      14

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Library Changes

Created On: 04-05-2007
Modified On: 01-17-2008

Personal tools