Back to functions

matget


vector get

Gets an element in a matrix with zero based index.

Usage: nerdamer("matget(M, i, j)")


Parameters

expression M a matrix from which the element is being retrieved.
expression i row index
expression j column index

Returns

Expression

EXAMPLES:
nerdamer.setVar('M', 'matrix([x,y],[a,b])');
console.log(nerdamer('matget(M, 0, 1)').toString());
console.log(nerdamer('M').toString());
OUTPUT:
Back to functions