Re: [R] Conversion of Matlab code to an R code

2015-03-23 Thread John C Frain
You do not say why you want to convert. I your reason is that you do not have access to Matlab you might try to run your program in Octave. I think that there are some syntax errors in your Matlab code. Most of these, but not all, I think, may have been caused, (as you have already been told) by th

Re: [R] Conversion of Matlab code to an R code

2015-03-23 Thread Roy Mendelssohn - NOAA Federal
On Mar 23, 2015, at 8:10 AM, Abhinaba Roy wrote: > Hi, > > Can a Matlab code be converted to R code? > > I am finding it difficult to do so. > > Could you please help me out with it. > > Your help will be highly appreciated. If you mean something that can do an automatic conversion I am un

Re: [R] Conversion of Matlab code to an R code

2015-03-23 Thread Marc Schwartz
> On Mar 23, 2015, at 10:10 AM, Abhinaba Roy wrote: > > Hi, > > Can a Matlab code be converted to R code? > > I am finding it difficult to do so. > > Could you please help me out with it. > > Your help will be highly appreciated. > > Here comes the Matlab code Hi, Not do the conversion

Re: [R] Conversion of Matlab code to an R code

2015-03-23 Thread Bert Gunter
1. Yes. Both are Turing complete . 2. Someone here may be willing to help you if you're lucky, but the standard recommendation is: Do your homework and learn R! (There are many good tutorials and resources available). 3. In future, post in plain text, not HTML, as the posting guide asks. Cheers

[R] Conversion of Matlab code to an R code

2015-03-23 Thread Abhinaba Roy
Hi, Can a Matlab code be converted to R code? I am finding it difficult to do so. Could you please help me out with it. Your help will be highly appreciated. Here comes the Matlab code ## if ~isvector(ecg) error('ecg must be a row or column vector'); end if nargin < 3 gr =