Displaying 20 results from an estimated 4000 matches similar to: "Why R is 200 times slower than Matlab ?"
2008 Apr 30
0
Fwd: Why R is 200 times slower than Matlab ?
This is what I refer to as "ab uno disce omnes"-thinking:
-- from one example all is revealed -- but this is the antithesis
of statistical thinking.
Here is an example function, others can probably do better.
On a vector of length 300 it takes .018 seconds on my aging
G5 ppc mac:
pears <- function(x){
n <- length(x)
A <- combos(n,2)
rbind(x[A[1,]],x[A[2,]])
}
This is
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
2008 May 02
1
Speedups with Ra and jit
The topic of Ra and jit has come up on this list recently
(see http://www.milbo.users.sonic.net/ra/index.html)
so I thought people might be interested in this little demo. For it I
used my machine, a 3-year old laptop with 2Gb memory running Windows
XP, and the good old convolution example, the same one as used on the
web page, (though the code on the web page has a slight glitch in it).
This
2006 Dec 15
6
Query regarding linking R with Matlab
Thank you sir for your prompt reply.
Currently i am stuck at point where I need to call an available Matlab program from an R 2.4.0 interface. How can I do this? I have downloaded the R.matlab file and also the manual in pdf. But still i am not able to get through the problem. I will be grateful to you if you can elaborate me on this.
Awaiting your reply,
regards,
Bhanu Kalyan K
2010 Aug 27
8
R.matlab package help
Hi,all
I have a problem running R.matlab package
(under 2.10.1 version). I can set up the matlab server under local
machine(run the MatlabServer.m), "
And I can use setVariable and evaluate matlab functions in R. But when I ask
Matlab to send the value back to R using getVariable function it
always returns an error:
"
??? Error: A MATLAB string constant is not
2007 Apr 10
2
Matlab import
Dear R-Experts,
here again a question concerning matlab. With the command "matrixM=[1 2
3;4 5 6]" a matrix under Matlab was constructed. It was than stored with
the command "save('matrixM.txt','matrixM')".
Now I tried to import the data in R with the help of the command
"Z=matrix(scan("Z:/Software/R-Programme/matrixM.txt"))"
An error
2007 Nov 17
3
R and reading matlab compressed files
Is there any way to read these files (standard .mat files, created by
matlab version 7 onwards are compressed)? I know that R.matlab doesn't
read them (it even says in the file MatlabServer.m "Matlab v7 saves
compressed files, which is not recognized by R.matlab's readMat()" (lines
47-8)).
I know I should be able to make R call Matlab and transfer data (not that
I managed to
2006 Dec 17
1
Start Matlab server in R 2.4.0
In order to start matlab server in R , I using the following commands
getwd()
setwd("D:\R_matlab")
install.packages("R.oo")
install.packages("R.matlab")
install.packages("R.utils")
library(R.matlab)
Matlab$startServer()
a minimized MATLAB Command Window come out,
but I can't make this window become larger. Does anyone know why?
I type
2006 Dec 30
2
Evaluating Entire Matlab code at a time
Hi.
On 12/30/06, Bhanu Kalyan.K <kalyansikha at yahoo.com> wrote:
> Dear Mr.Bengtsson,
>
> The steps you have suggested are working for single lines of matlab
> statements. But, as i mentioned earlier, If i want to see the output of an
> entire matlab code (say swissroll.m) then you suggested me to do
> res <- evaluate(matlab, "swissroll").
> When i did
2003 Apr 03
2
Matrix eigenvectors in R and MatLab
Dear R-listers
Is there anyone who knows why I get different eigenvectors when I run
MatLab and R? I run both programs in Windows Me. Can I make R to produce
the same vectors as MatLab?
#R Matrix
PA9900<-c(11/24 ,10/53 ,0/1 ,0/1 ,29/43 ,1/24 ,27/53 ,0/1 ,0/1 ,13/43
,14/24 ,178/53 ,146/244 ,17/23 ,15/43 ,2/24 ,4/53 ,0/1 ,2/23 ,2/43 ,4/24
,58/53 ,26/244 ,0/1 ,5/43)
#R-syntax
2007 Apr 05
8
package for Matlab
Hallo,
does a package for Matlab exist in R?
If yes, where can I find it and how can I install it under R?
Thanks, Corinna
2010 May 03
10
Math?
Dear All
Is there any software package like MATLAB for Windows available for centos?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100503/7a522211/attachment-0001.html>
2006 Dec 20
1
R.matlab question
Does anyone know how to solve this question about R.matlab?
I am in windowsXP, my matlab is matlab 7.0.0 19920(R14)
thanks,
Aimin
> matlab <- Matlab(host="localhost", port=9998)
> if (!open(matlab)) throw("Matlab server is not running: waited 30 seconds.")
Error in list("throw("Matlab server is not running: waited 30 seconds.")" =
2004 Jun 21
6
Visual stimulus presentation using R?
Dear all!
Although the Psycho-Toolbox for Matlab is free software, Matlab isn't.
I'm planning to do an experiment where it's essentail to travel to the
subjects, not let the subjects come to where the Matlab licences are
:-(
So I need to use a free software for my experiment if I don't want to
by an extra Matlab licence (which I don't want to).
Did anyone ever try to do
2010 Oct 28
2
R and Matlab
Dear Group,
I am looking for ways to use R and Matlab. Doing the data transformations in
R and using the data in Matlab to analyze with some pre-defined scripts.
Any good ways to transfer the data into matlab in its most recent version?
I tried using R.matlab but the writeMat output is not readable by Matlab.
I just need to output a data.frame and read it as is into matlab where I can
do any
2010 Dec 19
2
R.matlab memory use
Hi,
I am trying to load into R a MATLAB format file (actually, as saved by
octave). The file is about 300kB but R complains with a memory
allocation error:
> library(Rcompression)
> library(R.matlab)
Loading required package: R.oo
Loading required package: R.methodsS3
R.methodsS3 v1.2.0 (2010-03-13) successfully loaded. See ?R.methodsS3 for help.
R.oo v1.7.2 (2010-04-13) successfully
2008 Jun 19
2
Comparison between R and MATLAB
Hi R,
Can I get a comparison between R and MATLAB? How is R efficient than MATLAB? Or what are the weaknesses of R compared to MATLAB?
Thank you very much for your help,
Shubha
Shubha Karanth | Amba Research
Ph +91 80 3980 8031 | Mob +91 94 4886 4510
Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com
This e-mail may contain confidential and/or
2006 Jun 22
2
MVC architecture
Hi,
I want to creat a GUI accessible via the web with ruby to interface some
matlab implementation ... so I extended Ruby with C++ and then matlab :)
that works perfectly: I have finaly a Ruby class I can call whenever I
want to lunch my matlab algorithm ;)
the point is now I have to make the GUI in HTML with Rubby on rails and
Damn! I don''t get how works the MVC architecture in Ruby
2003 May 27
3
The Wrong Choice: Locked in by license restrictions
A colleague pointed me to this article advocating R as a Matlab
substitute. Here is the link (deliberately on two lines:
http://searchenterpriselinux.techtarget.com/
originalContent/0,289142,sid39_gci902076,00.html
I'm not a Matlab user, but I understand that it provides a nice front
end to the Linpack collection of numerical linear algebra routines. My
friend and I wonder if R can really
2004 Oct 07
8
Equivalents of Matlab's 'find' and 'end'
Sorry if these questions have been asked recently--I'm new to this list.
I'm primarily a Matlab user who is attempting to learn R and I'm searching for possible equivalents of commands that I found very handy in Matlab. So that I don't seem ungrateful to those who may answer, I HAVE determined ways to carry out these processes in 'brute force' sorts of ways in R code,