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:

Turkce-Ingilizce Tekerleme

I scream, you scream we all scream for ice scream I run, you run we all run for ayran