DimStructure

From VLECK
Jump to: navigation, search


Returns the number of matrices in the last layer of a structure

Syntax

Result = DimStructure(Values);

Return Value

DimStructure returns the number of matrices in the last layer of a structure. The return value is a single integer value.

Parameters

Values structure or matrix with text or numerical values


Example

A=Redim(1#30; 2,3,5)
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15

16 17 18 19 20
21 22 23 24 25
26 27 28 29 30

R = DimStructure(A)
1

B = {A;A[1;;];A}
[1] : A [2] : A [3] : A

R = DimStructure (B)
3