Back to functions

matgetrow


matrix get row

Gets a row of a matrix. Returns a new vector.

Usage: nerdamer("matgetrow(M, i)")


Parameters

expression M a matrix from which the row is being retrieved.
expression i the zero based row index

Returns

Matrix

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