Skip to contents

Copies and append values from the final dimension of a 3D array to the end of the final dimension. Originally written by Craig Marsh.

Usage

extend_3darray_last_dim(array_3d, n)

Arguments

array_3d

array with 3 dimensions

n

number of times to concatenate the last element in the 3rd dimension