Count Elements in Specified Dimension in Data List

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Function

This Step is used to count the number of elements in a specified level of input data.

Usage Scenario

A general element count Step, which can be used with the Step Repeat Data and Concatenate Copies to make the data lengths of the input ports of the subsequent Step equal.

Input and Output

Input

Input port Data type Description

Unnamed

Abstract

Any data type.

Output

Output port Data type Description

Unnamed

Number

Number of elements in the specified dimension.

Parameter Description

Parameter Description

Nth Dimension of Processed Variables in Vector

Description: This parameter specifies the nesting hierarchy of lengths to be counted (starting from 0 and ending at 14).

  • When the input is a one-dimensional list, setting the dimension to 0 indicates counting the elements of the list.

  • When the input is a multidimensional nesting structure, the dimension value represents the corresponding nesting hierarchy. The dimension value should be smaller than the actual number of nesting hierarchy levels of the data.

Default value: 0

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.