Skip to content

Instantly share code, notes, and snippets.

@sshine
Created February 5, 2014 20:44
Show Gist options
  • Save sshine/8832651 to your computer and use it in GitHub Desktop.
Save sshine/8832651 to your computer and use it in GitHub Desktop.
m <- matrix(c(1, 0, 0,
0, 4, 0,
0, 0, 2), ncol=3, byrow=T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment