## Function written to match MATLAB function
## Author: Andrew Hooker
trace_matrix <- function(mat){
return(sum(diag(mat)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.