Welcome to our Support Center

Split 2D Array

Description

Divides array at index and returns the two portions with the element of index at the beginning of second subarray.

Warning : Two new tensors is created for the outputs.

 

Input parameters

 

array : class, two-dimentional tensor.
index : integer, if index is negative or 0, first subarray is empty. If index is equal to or greater than the size of array, second subarray is empty.
split_on_row ? : boolean, if true, performs division on rows, otherwise on columns.

Output parameters

 

first subarrayΒ : class, contains array[0] through array[index-1].
second subarrayΒ : class, contains the remaining array elements not already contained in first subarray.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install PERRINE library to run it).

Table of Contents
Index