cat

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Concatenate (append) two (or more) objects together

Arguments and Return Values

Arguments: two or more objects whose dimensions along the unspecified axes are equal.

Return Value: an object equaling the input objects combined.

Usage

Syntax: cat(obj1, obj2, [obj3, obj4, ... objn,] axis = x/y/z)

The cat() function duplicates obj1 and appends a copy of obj2 through objn, along the specified axis.

The arrays may be in different formats, in which case the return value will be in the smallest format with a range that contains the range of all of them. This is the same conversion that happens for math operations between different types. The objects may also be in different organizations with the return value having the organization of obj1.

The two objects must have the same dimension along the two unspecified axes.

The objects must have the same dimension along the two unspecified axes.

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