Back to functions

matset


matrix set

Set an element in a matrix with zero based index. Returns the modified vector.


Usage: nerdamer("matset(m, i, j)")


Parameters

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

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