Referencematrix

<matrix>

<matrix> is a Math component that defines/renders a matrix for use in computations.

Attributes and Properties

Attributes for <matrix>
AttributeTypeValues
anchor = "…"point
createIntervals = "…"boolean"true" "false"
createVectors = "…"boolean"true" "false"
defaultEntry = "…"
displayBlanks = "…"boolean"true" "false"
displayDecimals = "…"integer
displayDigits = "…"integer
displaySmallAsZero = "…"number
draggable = "…"boolean"true" "false"
expand = "…"boolean"true" "false"
format = "…"text"text" "latex"
functionSymbols = "…"textList
layer = "…"number
numColumns = "…"integer
numRows = "…"integer
padZeros = "…"boolean"true" "false"
parseScientificNotation = "…"boolean"true" "false"
positionFromAnchor = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center"
referencesAreFunctionSymbols = "…"
renderMode = "…"text
simplify = "…"text"none" "full" "numbers" "numberspreserveorder"
splitSymbols = "…"boolean"true" "false"
unordered = "…"boolean"true" "false"
Props for <matrix name="m">
PropertyType
$m.anchorpoint
$m.backgroundColortext
$m.createIntervalsboolean
$m.createVectorsboolean
$m.disabledboolean
$m.displayBlanksboolean
$m.displayDecimalsinteger
$m.displayDigitsinteger
$m.displaySmallAsZeronumber
$m.draggableboolean
$m.expandboolean
$m.fixedboolean
$m.fixLocationboolean
$m.formattext
$m.functionSymbolstextList
$m.hiddenboolean
$m.isNumberboolean
$m.isNumericboolean
$m.latexlatex
$m.layernumber
$m.list[ math ]
$m.matrix[ math ]
$m.matrixSizenumberList
$m.numbernumber
$m.numColumnsinteger
$m.numDimensionsinteger
$m.numListItemsinteger
$m.numRowsinteger
$m.padZerosboolean
$m.parseScientificNotationboolean
$m.positionFromAnchortext
$m.renderModetext
$m.simplifytext
$m.splitSymbolsboolean
$m.texttext
$m.textColortext
$m.textStyleDescriptiontext
$m.unorderedboolean
$m.valuematrix
$m.vector[ math ]
$m.xmath
$m.ymath
$m.zmath

Example: Create a <matrix> from rows

Matrices can be quickly defined by listing row entries within nested <row> components. Individual entries can be accessed using array notation with the matrix property.


Example: Create a <matrix> from columns

Matrices can be quickly defined by listing column entries within nested <column> components. Individual entries can be accessed using array notation with the matrix property.


Example: Create a <matrix> of a given size

A <matrix> of a given size can be generated using the numRows and the numColumns attributes. By default, a zero matrix will be defined; to modify this use the defaultEntry attribute.


Example: Create a <matrix> from user-input rows

This example shows one method of populating the entries of a <matrix> from user-input. See also, <matrixInput>.


Example: <matrix> addition/ subtraction

The <math> component with the simplify attribute performs matrix addition and subtraction.


Example: <matrix> multiplication

The <math> component, along with both the simplify and expand attributes, performs matrix multiplication.


Example: Multiplication by a scalar

The <math> component with the simplify attribute performs matrix multiplication by a scalar.


Example: <matrix> from geometry

A coefficient matrix can be constructed from vectors or other geometric objects by referencing the objects within the <row> or <column> components. The references should be enclosed in parentheses.


Attribute Example: numRows / numColumns

With numRows and numColumns, a zero matrix of a given size can be defined.


Attribute Example: defaultEntry

Use the defaultEntry attribute to change the prefilled value for a matrix of a specified size; the default value is 00.


Property Example: Attributes as properties

The numRows attribute is also accesible as a property.