Back to functions

matgetcol


matrix get column

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

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


Parameters

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

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