Jump to content

Split 1D Array function: Difference between revisions

From LabVIEW Wiki
Add new page (stub)
 
Add content
Line 1: Line 1:
{{stub}}
[[File:Split 1D Array - Terminals.png|thumb|Split 1D Array function]]
[[File:Split 1D Array - Terminals.png|thumb|Split 1D Array function]]


{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}}
The '''Split 1D Array''' function splits a one-dimensional array into two subarrays. Any element <u>before</u> the specified index goes into the first subarray, the rest into the second subarray.


== Usage ==
== Usage ==


== Best practice ==
Connect a one-dimensional array to the '''array''' input terminal and the desired split location at '''index'''. The output terminal '''first subarray''' will contain any element <u>before</u> the specified index and '''second subarray''' the remaining elements.
 
== History ==
 
== See also ==


== External links ==
[[File:Split 1D Array - Split Integer.png]]


[[Category:Array Palette]]
[[Category:Array Palette]]

Revision as of 18:13, 17 November 2019

Split 1D Array function
Object information
Owning palette(s) Array palette
Type Function
Requires Basic Development Environment

The Split 1D Array function splits a one-dimensional array into two subarrays. Any element before the specified index goes into the first subarray, the rest into the second subarray.

Usage

Connect a one-dimensional array to the array input terminal and the desired split location at index. The output terminal first subarray will contain any element before the specified index and second subarray the remaining elements.