similar to: Fwd: Why R is 200 times slower than Matlab ?

Displaying 20 results from an estimated 900 matches similar to: "Fwd: Why R is 200 times slower than Matlab ?"

2008 Apr 30
8
Why R is 200 times slower than Matlab ?
I am switching from Matlab to R, but I found that R is 200 times slower than matlab. Since I am newbie to R, I must be missing some important programming tips. Please help me out on this. Here is the function: ## make the full pair-wise permutation of a vector ## input_fc=c(1,2,3); ## output_fc=( 1 1 1 2 2 2 3 3 3 1 2 3 1 2 3 1 2 3 ); grw_permute = function(input_fc){ fc_vector = input_fc
2008 May 09
1
how to plot two graphs in one figure
Dear helpers, I am trying to plot two survival curves in the same figure. plot(survival) // in matlab, one just need to call "hold on" plot(survival2) I am wondering how to do it in R. Thank you very much! -- Zhandong Liu Genomics and Computational Biology University of Pennsylvania 616 BRB II/III, 421 Curie Boulevard University of Pennsylvania School of Medicine Philadelphia, PA
2006 Jun 16
4
problem with join
Hi all, I''m having a problem with a join inside a paginate, the code is like this: @ruta_pages, @rutas = paginate :rutas, :conditions => conds_arr, :joins => "AS ru LEFT JOIN vehiculos AS ve ON ru.vehiculo_id = ve.id", :per_page => 10, :order => "fecha DESC" The problem with this, is that the query returns the
2006 Aug 07
9
problems with ActionMailer
Hi all, I''m trying to create a worker to send a mail to all the users in my db. Right now I''m doing the tests, this is the code in my worker (Masivo is the ActionMailer subclass): def do_work(args) @progress = 0 @logger.info("MAILER: starting job") records = Record.find(:all) total = records.size records.each_with_index do |record, idx|
2012 Jan 04
1
[Matlab] Need help on ARIMA and Matlab
Hi, I have to forecast some value of a time series using an ARIMA(5,1,3) model. I saw in Matlab there isn't a function for ARIMA models because ARIMA models are a type of Box-Jenkins models. But how to set parameters? In the Box-Jenkins models m = bj(data,[nb nc nd nf nk]) How to set nb, nc, nd, nf and nk in order to have an ARIMA(p,d,q) model? Thanks [[alternative HTML version
2007 Aug 13
1
Matlab 2007a and C5 out-of-box broken
I had to reinstall C5 64-bit out-of-box on two machines. Before the reinstall, Matlab 2007a 64-bit worked fine. Now, I get "failed to start the desktop; failure loading desktop class". matlab -nojvm works fine. The reinstall was not an upgrade. I tested on two identical systems - one before I installed the NVIDIA drivers, and one after. No difference. I installed jre and jdk
2001 Jul 03
1
Matlab
Hi all, I am totally new to new to wine, after installing it and configuring wine.conf I'm trying to get matlab works, but the program a second after starting cras, here's the output: wine matlab Warning: /usr/X11R6/bin/winereal not accessible from a DOS drive Warning: /usr/X11R6/bin/winereal not accessible from a DOS drive Warning: /usr/X11R6/bin/winereal not accessible from a DOS drive
2004 Apr 19
0
R analog of Matlab "eigs" function
Hi, I was wondering if anyone knew of an implementation of a function similar to "eigs" in Matlab (full description here: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/eigs.html). This function differs from the standard "eigen" in that it computes a *few* eigenvectors for cases in which your matrix is very large and/or you don't need all the eigenvectors.
2000 Nov 29
1
matlab to R / 2
Colleagues, Thanks for the suggestions concerning reading matlab files into R 1. Regarding documentation for the format of matlab files, please see two manuals that I picked up from the matlab websites. The name of the files are: api_guide.pdf api_ref.pdf Use your web browser to access these files in my FTP directory <ftp://ftp.niwa.cri.nz/incoming/mcclatchie> under the appropriate
2007 Feb 06
0
R equivalent to Matlab spline(x,y,xx)
Hello I am currently translating some Matlab code into R and would like to know what people would recommend as the equivalent in R for spline(x,y,xx) in matlab. The latter performs a cubic spline interpolation where x,y are the given data vectors and xx is the new abscissa vector. It allows for the definition of end conditions in y, which is very useful. I tried using spline and splinefun from
2011 Aug 30
1
execute R commands from Matlab
They seem to have a workaround. I don't know whether anything better is available by now. http://www.mathworks.com/matlabcentral/newsreader/view_thread/163726 HTH, Daniel sarak wrote: > > Is it possible for anyone to upload a youtube video showing how to execute > R commands in Matlab , it's so vital for me .. > -- View this message in context:
2006 Jul 12
1
how to install matlab using Wine in Debian (Knoppix) or Fedora?
Hello Frank, I am a reserch student at the Indian Institute of Technology in Chennai, India. I need to work in Matlab Release 12 or Release 14 for my research purpose. The OS I like and use is Linux, (Debian, Fedora), is it possible to install Matlab 6.5 or 7.x using wine? I saw your website www.frankscorner.org and saw some instructions. Can you please give me a step by step instruction step for
2009 Aug 10
1
R to MATLAB translation
Hi, Is there any package out there that might help me with translating R code into MATLAB? Using RSiteSearch I found a bunch of "MATLAB stuff" but it all seems to go in the opposite direction, i.e., emulating MATLAB functions in R. Thanks in advance, Andy __________________________________ Andy Jaworski 518-1-01 Process Laboratory 3M Corporate Research Laboratory ----- E-mail:
2006 Nov 30
1
analog to the matlab buffer function?
Hello! I am new to R. I could not find a function analogous to matlab's function buffer, which is used in signal processing. Is there such a function in R? What I need to do is as follows. If I apply the function to the vector c(1:5) for example with a window length 3 and overlapping 2, I need to get a matrix like this: 1 2 3 2 3 4 3 4 5 In matlab this is achieved with the function buffer. Is
2011 Oct 01
3
matlab
a greeting, and I would like to install ubuntu 11.04 7.10 matlab R2010a DVD and I have the exe file from its wine licenza.con accept all the password then at a certain point I said: There was an unexpected exception: Command line returned error code '9009 OS 'for command [cmd.exe / C dir / c-C:] See the log file (C: Temp mathworks_antonio.log antonio users) for more details.come can I fix?
2009 Dec 30
1
Matlab not working when run of a samba 3.4.x share
Matlab when installed on a samba 3.4.x share is not working. (it works with 3.3.x and earlier versions) The application stops with a java related message. ("matlab -nojvm" works) the detailed log messages and Google led me to bug 6837. Even if this bug is said to be Windows 7 related, the patch for it fixes the matlab problem in 3.4.x (which is present in XP and probably affects other
2011 Feb 18
1
reading a matlab file
Dear R-people, I am trying to read a matlab file, unfortunately without success. I enclosed the zipped file. Do you have an idea how to read this file by ReadMat package into the R system? Thanks for your time! Wim Krijnen
2012 Nov 08
1
the results of the SORT function differ from Scilab/Matlab for Complex Numbers
Hello useRs, The results of the SORT function differ from Scilab/Matlab for Complex Numbers in my example. This design is the desirable in R? Thanks. Cleber r <- c( 1.7507+0.1689i, 1.7507-0.1689i, 1.3886+0.0000i, 1.0458+0.0792i, 1.0458-0.0792i, 0.8279+0.1861i, 0.8279-0.1861i, 0.8263+0.3731i, 0.8263-0.3731i, 0.6548+0.0000i ) > cbind(sort(r, d=T)) [,1] [1,]
2011 Apr 21
1
'Structure' compatible between Matlab and R
Dear all, I would like to store some data in a such way that I can import and export the data from matlab to R (And vice versa). I have a matrix of size 512*512 size. I would like to have 101 of such matrices. (that is easy so far) and then I would like to have 35times the 101 matrices. That means that I want to store the following data 35*101*512*512. In a normal case that would mean that I
2010 Jun 10
1
importing multidimensional matrix from MATLAB
Hi, Suppose I have a matrix of size 256x14x32 in MATLAB. I want to import that into R. I used readMat and then do.call. But the variable is stored as an array as its done in R. However, I want to define a variable W=array(0,c(256,14,32)) in R and read the multidimensional matlab variable into W. I am not able to do this in R. Please, could you help ? Thanks Gopi [[alternative HTML version