Back to functions

matsetrow


matrix set row

Sets a row of a matrix. Returns a new matrix.

Usage: nerdamer("matsetrow(M, i, row)")


Parameters

expression M a matrix for which the row is being set.
expression i the zero based row index
vector row the vector representation of the row

Returns

Matrix

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