Manipulating arrays

A

Alan Beban

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top