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 Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions 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 Connexions 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.
  • 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

  • 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

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

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

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

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

Give Feedback:

E-mail the module author | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

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

| A lens (?)

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to Connexions 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 Connexions 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