Re: [R] Query regarding linking R with Matlab

2006-12-28 Thread Henrik Bengtsson
On 12/28/06, Bhanu Kalyan.K [EMAIL PROTECTED] wrote: Respected Sir, It worked. open(matlab) [1] TRUE Good. But however, the 'evaluate' function is not responding. When i give the command as: res - evaluate(matlab, A=1+2;, B=ones(2,20);) The R interface is not returning any value

Re: [R] Query regarding linking R with Matlab

2006-12-28 Thread Henrik Bengtsson
[Forwarding to r-help for completeness. /Henrik] -- Forwarded message -- From: Henrik Bengtsson [EMAIL PROTECTED] Date: Dec 28, 2006 9:45 PM Subject: Re: [R] Query regarding linking R with Matlab To: [EMAIL PROTECTED] Hi. On 12/28/06, Bhanu Kalyan.K [EMAIL PROTECTED] wrote

Re: [R] Query regarding linking R with Matlab

2006-12-27 Thread Henrik Bengtsson
Hi, It might be that R can't find Matlab; then you have to specify option 'matlab', see help(Matlab). Try also a different port. Try to add a line setVerbose(matlab, -2) to get more detailed output what is going on; matlab - Matlab(host=localhost, port=9998) setVerbose(matlab, -2) if

Re: [R] Query regarding linking R with Matlab

2006-12-27 Thread Henrik Bengtsson
Hi. From what you tell me you manage to start Matlab in the background by calling: Matlab$startServer() but that R fails to connect to Matlab by: matlab - Matlab(host=localhost, port=9998) if (!open(matlab)) throw(Matlab server is not running: waited 30 seconds.) Sorry for not being

[R] Query regarding linking R with Matlab

2006-12-20 Thread Bhanu Kalyan.K
Sir, I am still new to the R-matlab interfacing. I will explain you the problem statement more clearly. The following is a matlab code. (swissroll.m) = % SWISS ROLL DATASET N=2000; K=12; d=2; clf; colordef none; colormap jet;

Re: [R] Query regarding linking R with Matlab

2006-12-20 Thread Henrik Bengtsson
Hi. On 12/20/06, Bhanu Kalyan.K [EMAIL PROTECTED] wrote: Sir, I am still new to the R-matlab interfacing. I will explain you the problem statement more clearly. The following is a matlab code. (swissroll.m) = % SWISS ROLL DATASET

Re: [R] Query regarding linking R with Matlab

2006-12-17 Thread Henrik Bengtsson
Hi, what operating system are you on and what version of Matlab do you have? In general you should be able to get started with R.matlab by first installing all required packages from CRAN: install.packages(c(R.oo, R.utils, R.matlab)) Then load the package: library(R.matlab) From there just

[R] Query regarding linking R with Matlab

2006-12-15 Thread Bhanu Kalyan.K
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