ResizeAndClear

Declaration: TMat4D.ResizeAndClear (Nc, Nr, Nl, Nt: longint): boolean;
The method ResizeAndClear changes the dimensions of the hypercube matrix and clears all the cells. The parameters Nc, Nr, Nl, and Nt define the intended size of the matrix (number of columns, number of rows, number of layers, and number of time slots, respectively). ResizeAndClear returns a TRUE value if the new matrix has been resized successfully.