ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Manipulating arrays (https://www.excelbanter.com/excel-programming/400141-manipulating-arrays.html)

Alan Beban[_2_]

Manipulating arrays
 
I uploaded to the freely downloadable file at
http://home.pacbell.net/beban three additional functions: OneD, TwoD and
ThreeD. They provide for changing the number of dimensions of a loaded
1-D, 2-D or 3-D array. If the dimensions are increased, all the data
remains within the changed array; if the number of dimensions is
decreased, then, of course, some of the data goes away. If the input
array is 3-D, it also provides for the extraction of 2-D slices. If you
visualize the 3-D array as comprising a solid sitting on the xy-plane,
with its height along the z-axis direction, the extracted 2-D slices can
lie in or be parallel to the xy-plane, the xz-plane or the yz-plane.

Used in conjunction with the ResizeArray function, which adjusts the
bounds of arrays (up to 4-D), they can be handy in the right circumstances.

As always, any constructive comments will be welcomed.

Alan Beban


All times are GMT +1. The time now is 01:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com