powered by
Calculates the Frobenius norm of a matrix, which can be used as a measure of total variation
MatVar2(X)
The Frobenius norm of the matrix X, calculated as the square root of the trace of t(X)
a matrix of any size
X = matrix(rnorm(10), 5,2) MatVar2(X)
Run the code above in your browser using DataLab