Back to functions

matsetcol


matrix set column

Sets a column of a matrix. Returns a new matrix.

Usage: nerdamer("matsetcol(M, i, col)")


Parameters

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

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