Ranjan Maitra
2012-Jun-21 22:00 UTC
[R] R function similar to gradient function in Matlab?
Hi, I am trying to convert some Matlab code into R for running some experiments and I was wondering if there is some function in R which does the work of the gradient function in Matlab calculating the "gradient" of 1-, 2- and 3-d images. I only need the 3-d calculations for running these experiments. Many thanks and best wishes, Ranjan
R. Michael Weylandt <michael.weylandt@gmail.com>
2012-Jun-21 23:07 UTC
[R] R function similar to gradient function in Matlab?
I don't have a Matlab license or enough experience with it to know what gradient does, but I know there's a Matlab-to-R "dictionary" out there that many folks find helpful. It might have what you need (or just be generally useful). http://cran.r-project.org/doc/contrib/Hiebeler-matlabR.pdf Not sure if that's the most up to date. Michael On Jun 21, 2012, at 5:00 PM, Ranjan Maitra <maitra at iastate.edu> wrote:> Hi, > > I am trying to convert some Matlab code into R for running some > experiments and I was wondering if there is some function in R which > does the work of the gradient function in Matlab calculating the > "gradient" of 1-, 2- and 3-d images. I only need the 3-d calculations > for running these experiments. > > Many thanks and best wishes, > Ranjan > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.