Back to functions

size


Size

Gets the size of the matrix or vector. Returns a vector with the [row length, column length] in matrix.

Usage: nerdamer("size(M_V)")


Parameters

Matrix | Vector M_V a matrix for which the row is being set.

Returns

Matrix

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