Skip to content Skip to navigation

Connexions

You are here: Home » Content » Array Functions

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • NSF Partnership display tagshide tags

    This module is included inLens: NSF Partnership in Signal Processing
    By: Sidney BurrusAs a part of collection: "LabVIEW Graphical Programming Course"

    Click the "NSF Partnership" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

  • National Instruments display tagshide tags

    This module is included in aLens by: National InstrumentsAs a part of collection: "LabVIEW Graphical Programming Course"

    Comments:

    "A full introductory course on programming with LabVIEW."

    Click the "National Instruments" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • Lens for Engineering

    This module is included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

  • eScience, eResearch and Computational Problem Solving

    This module is included inLens: eScience, eResearch and Computational Problem Solving
    By: Jan E. OdegardAs a part of collection: "LabVIEW Graphical Programming Course"

    Click the "eScience, eResearch and Computational Problem Solving" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

Array Functions

Module by: National Instruments. E-mail the author

Summary: In this section, you will learn about Array Functions.

Use the Array functions located on the Functions>>All Functions>>Array palette to create and manipulate arrays. The more commonly used array functions include the following:

  • ArraySize.png Array Size: Returns the number of elements in each dimension of an array. If the array is nn-dimensional, the size output is an array of nn elements. For example, the Array Size function returns a size of 33 for the following array.
    Table 1
    7 4 2
  • InitArray.png Initialize Array: Creates an nn-dimensional array in which every element is initialized to the value of element. Resize the function to increase the number of dimensions of the output array. For example, the Initialize Array function returns the following array for an element of 44, a dimension size of 33, and one dimension size terminal.
    Table 2
    4 4 4
  • BuildArray.png Build Array: Concatenates multiple arrays or appends elements to an nn-dimensional array. Resize the function to increase the number of elements in the output array. For example, if you concatenate the two previous arrays , the Build Array function returns the following array.
    Table 3
    7 4 2
    4 4 4
    To concatenate the inputs into a longer array of the same dimension as shown in the following array, right-click the function node and select Concatenate Inputs from the shortcut menu to create the following array.
    Table 4
    7 4 2 4 4 4
  • ArraySubset.png Array Subset: Returns a portion of an array starting at index and containing length elements. For example, if you use the previous array as the input, the Array Subset function returns the following array for an index of 22 and a length of 33.
    Table 5
    2 4 4
  • IndexArray.png Index Array: Returns the element or sub-array of n-dimension array at index. For example, if you use the previous array as the input, the Index Array function returns 22 for an index of 00. You also can use the Index Array function to extract a row or column of a 2D array to create a subarray of the original. To do so, wire a 2D array to the input of the function. Two index terminals are available. The top index terminal indicates the row, and the second terminal indicates the column. You can wire inputs to both index terminals to index a single element, or you can wire only one terminal to extract a row or column of data. For example, wire the following array to the input of the function.
    Table 6
    7 4 2
    4 4 4
    The Index Array function returns the following array for an index (row) of 00:
    Table 7
    7 4 2

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks