Displaying 20 results from an estimated 7000 matches similar to: "HOW to call R code from matlab?"
2014 Oct 10
1
how to break the loop using sapply?
Dear expeRts,
?? i? use sapply for loop,?and i want to break it when i needed, how to do that?? e.g.
sapply( 1:10, function(i) {
if(i==5) break and jump out of the function sapply
} )
I want to do it because i have to loop 1000000 times, but i don't know when it will break, that means, it may need break at i=5 or at i=50000, for the possible of the? last case, i don't use for loop,
2014 Aug 22
1
what are labels in struct sxpinfo_struct from Rinternals.h mean?
Dear Rdevelers,
? ? ?The following struct is in the Rinternals.h. I want to know ?the meanings of labels or names like "gp,mark,obj,named,trace....." . TKS!
struct sxpinfo_struct {
? ? SEXPTYPE type ? ? ?: ?5;/* ==> (FUNSXP == 99) %% 2^5 == 3 == CLOSXP
? ? * -> warning: `type' is narrower than values
? ? * ? ? ? ? ? ? ?of its type
? ? * when SEXPTYPE was an enum
2014 Sep 12
1
using pdf(file="") encount a Chinese garbled
Dear expeRts,
??? When i use the following codes:
??? pdf(file="1.pdf",width=15)
? ? plot(1:3,main="??")
??? dev.off()
#There were 12 warnings (use warnings() to see them)
? I find that "??" can't show correctly in pdf file, but? i just ?plot(1:3,main="??") to R plot viewer, it's ok .
? Is there anyone happen to know the solution? BTW, i explore the
2014 Sep 04
2
The newest version of Rstudio Desktop v0.98.1049 couldn't be installed
Dear expeRts,
?? I find the newest Rstudio Desktop v0.98.1049 ?for windows is not newest, after i installed, it was a old version.
--
PO SU
mail: desolator88 at 163.com
Majored in Statistics from SJTU
2015 Jun 19
1
QT + RInside problem complement
The solution post is here:
http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2012-November/004771.html
In the paragraph:
I did need however to install Rcpp and RInside from source, and with the same
compiler used to compile qtdensity (otherwise I would get additional linker
errors). As I had trouble getting the (Cygwin-based) g++ shipped with Rtools
to work with Qt, I used instead the
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
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.")" =
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
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
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
2008 Mar 26
2
Moving data between R and Matlab back and forth?
Hi to the list,
I am trying to find a way to painlessly move structured data back and
forth between R and Matlab (also Octave). For this purpose I found the
R.matlab package great help. I wish to use a Matlab -v6 MAT file as an
intermediary format, because it is well read by both Matlab and
Octave. It is also well read by 'readMat' function in R.matlab
package, but that is where I run
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
2008 Nov 02
2
R CMD check with Matlab and perl?
Hi, All:
How might one test Matlab and perl code during "R CMD check"?
I ask for two reasons: First, the "fda" package exists in both R
and Matlab, and it would help if we could run test examples in Matlab as
part of "R CMD check". I tried "R.matlab", but could not get it to work
in that context.
Second, I have professional
2009 Mar 03
2
R - MATLAB apply like function
Dear all,
I very often use the R function "apply", for speedup purposes. I am now also using MATLAB, and would like to use the same kind of function.
I have already asked MATLAB people, and the answer is : "vectorize"... but of course, this is not always possible. So, instead of using
a FOR loop all the time, I tried using the bsxfun. So you R people, who might also use MATLAB,
2006 Apr 19
1
comparing execition time: R vs matlab linear algebra...
Greetings:
We are evaluating the performance of R matrix algebra es as we port a
MATLAB R14 script into R.
The MATLAB code basically evaluates the AX=B system on sparse matrices
that result in output matrices of 100 to 1,000,000 rows/columns.
Our R prototype script uses spase base matrices and the methods qr() and
qr.coeff().
The following statements are called inside a doubly-nested loop:
G
2010 May 31
1
Matlab Speex library
Hello,
How to decode speex encoded audio in Matlab if Google doesn't find a
library in Matlab that does that? Do you know one? Can anyone tell me if
Matlab can use a Speex implementation in another language? Maybe binaries?
Thanks
Jader Dias
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Jan 03
2
R badly lags matlab on performance?
Here's a small R program:
---------------------------------------------------------------------------
a <- rep(1,10000000)
system.time(a <- a + 1)
system.time(for (i in 1:10000000) {a[i] <- a[i] + 1})
---------------------------------------------------------------------------
and here's its matlab version:
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
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: