cat

From DavinciWiki
Revision as of 13:40, 9 September 2011 by Mveto (Talk | contribs)

Jump to: navigation, search


64-bit SafeYes

Description

Concatenate (append) two objects together

Arguments and Return Values

Arguments: two objects of identical format and organization and whose dimensions along the specified axes are equal.

Return Value: an object equaling the two input objects combined.

Usage

Syntax: cat(object1, object2, axis = x/y/z)

The cat() function duplicates object1 and appends a copy of object2, along the specified axis. The two objects must match in format and organization, and must have the same dimension along the two unspecified axis.

Examples

 dv> a
 1x5x1 array of float, bsq format [20 bytes]
 44.8491
 40.7119
 17.7138
 94.1409
 2.46356

 dv> b
 2x5x1 array of float, bsq format [40 bytes]
 83.1721 93.1926
 20.7155 80.9114
 26.4541 70.0264
 48.0099 16.4950
 12.4010 87.5333

 dv> c=cat(a,b,axis=x)
 3x5x1 array of float, bsq format [60 bytes]
 44.8491 83.1721 93.1926
 40.7119 20.7155 80.9114
 17.7138 26.4541 70.0264
 94.1409 48.0099 16.4950
 2.46356 12.4010 87.5333

 dv> d=cat(a,b,axis=y)
 Axis must match

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 11-18-2016

Personal tools