Skip to content
Prev 293709 / 398513 Next

Translation of matlab vectors code into r

Perhaps read An Intro to R (shipped with every packaging of R -- type
help.start() to get it) and then look at

http://cran.r-project.org/doc/contrib/Hiebeler-matlabR.pdf

n_o, nan_s, etc. are not functions I have in my Matlab distribution so
I can't give more advice without knowing what they actually do.

Your loop is wrong though: 1:5 in Matlab translates to 1:5 in R, not 5:1

Michael
On Sun, May 6, 2012 at 7:07 AM, Haio <joakim.aback at gmail.com> wrote: