Zum Inhalt

Matrizen

Eingabefelder für Matrizen können mit dem Eingabetyp matrix im input Element erzeugt werden.

Die Zellen einer Matrix müssen entweder vollständig aus Zahlen oder vollständig aus Ausdrücken bestehen. Es ist nicht erlaubt, diese beiden Eingabetypen innerhalb einer Matrix zu mischen.

Example

<p>
    Geben Sie die Identitätsmatrix der Größe <m>2 \times 2</m> ein:
</p>
<p>
    Antwort: <input>
        <matrix>
            <matrixrow>
                <number>1</number>
                <number>0</number>
            </matrixrow>
            <matrixrow>
                <number>0</number>
                <number>1</number>
            </matrixrow>
        </matrix>
    </input>
</p>

Attribute

Das matrix Element unterstützt die folgenden Attribute:

Attribut Typ Standardwert Beschreibung
credits xs:nonNegativeInteger 1 Number of credit points the user gets awarded for this input value.
defaultcolumns xs:positiveInteger | Auto - Initial number of columns in this matrix that are already there when the user loads the page. When this attribute is set to auto, the matrix initially has as many columns as the first matrix written as solution in this input value element.
defaultrows xs:positiveInteger | Auto - Initial number of rows in this matrix that are already there when the user loads the page. When this attribute is set to auto, the matrix initially has as many rows as the first matrix written as solution in this input value element.
maxcolumns xs:positiveInteger | Unbounded - Maximum number of columns that the user is allowed to put in the matrix.
maxrows xs:positiveInteger | Unbounded - Maximum number of rows that the user is allowed to put in the matrix.
mincolumns xs:positiveInteger - Minimum number of columns that the user is allowed to put in the matrix.
minrows xs:positiveInteger - Minimum number of rows that the user is allowed to put in the matrix.
model xs:Name - Name of the model to use for this input value. If this attribute is not set, the input model associated to the input field containing this input value is used.

Das matrixrow Element unterstützt keine Attribute.