Thursday, October 11, 2012

R/Matlab Anonymous functions

R for variable X:
means <- function(x)  rnorm(1,x)

Matlab
means = @(x) x+randn(1)

No comments:

Be human

The biggest mistake repeated throughout history has always been people in power thinking they have the right to harm the innocent for what t...