resize
From DavinciWiki
|
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: Yes
Description Resize dimensions of array retaining number of elements
Arguments and Return Values Arguments: A numeric array and x, y and z values Return Value: A numeric array of specified dimensions
Usage Syntax: resize(obj = VAL, x = INT, y = INT, z = INT [, org = ORG]) The product of the new dimensions must equal to the product of the original dimensions. The resize() function cannot create or destroy elements it can only rearrange them.
Examples dv> a 45x10x2 array of float, bsq format [3,600 bytes] dv> b = resize(a,45,10,2) 45x10x2 array of float, bsq format [3,600 bytes] dv> b = resize(a,45,20,1) 45x20x1 array of float, bsq format [3,600 bytes] dv> b = resize(a,45,10,3) Illegal dimensions: 45x10x3 != 900 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Core Changes Modified On: 11-05-2012 |