Table of Contents

Index operation

Used to sum or multiply values, or finding the maximum or minimum value, of a non-scalar Block. When the target object is 2-dimensional, you must specify which index list to perform the operation on.

Creating an index operation

From the Projects window

From the Matrix window

From the Blocks window

Editing an index operation

NoteMost block properties can be edited directly in the Blocks window.

The block editor is shown by right-clicking the block in a window and selecting Edit. In the Blocks window, you can also show the block editor by selecting the block and clicking the Edit button, or by double-clicking the right-most “validation” column of the block.

The block editor has three tabs:

Properties

This page lets you edit basic properties such as name, sub-system and base unit. See editing properties for more information.

Values

The values page let you select the target object and which operation to perform.

Operation - Choose the operation to perform. You can compute the sum, the product, the minimum or the maximum value of an object.

Object - Select the object to perform the operation from this list of all the available non-scalar objects.

Index List - When you select a 2-dimensional object, you specify here which index list to perform the operation over.

Example

The expression doses is two dimensional. At a specific time point is has the following values:

ContaminantPersonValue
Lead Man 4
Arsenic Man 1
Mercury Man 6
Lead Woman 3
Arsenic Woman 8
Mercury Woman 6

An index operation which finds the maximum over the Person indices would yield:

ContaminantValue
Lead 4
Arsenic 8
Mercury 6

See also