Back to functions

imatrix


Identity matrix

Creates an identity matrix of dimensions n x n

Usage: nerdamer("imatrix(n)")


Parameters

expression n Dimensions of identity matrix

Returns

Expression

EXAMPLES:
var x = nerdamer('imatrix(4)');
console.log(x.toString());
x = nerdamer.imatrix(3);
console.log(x.toString());
OUTPUT:
Back to functions