Rank: 24738 based on downloads (last 30 days) and 0 files submitted
photo

Patrick

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Patrick View all
Updated File Comments Rating
02 Sep 2009 MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson

I want to launch R from MATLAB.
I have been using R2.7.0 and DCOM Server 2.5.0 successfully.

I want to upgrade R to 2.8.0 (and later 2.9.2) and I realize that I have to change the DCOM Server. I did the following:
1. Downloaded and installed R 2.8.0 from http://cran.r-project.org/bin/windows/base/old
2. Changed Window system path to point to R-2.8.0/bin
3. Downloaded and installed R_Scilab_DCOM3.0-1B5.exe from http://cran.r-project.org/bin/windows/base (took all options)
4. Installed R package rscproxy_1.3-1.zip from http://cran.r-project.org/web/packages/rscproxy/index.html

I rebooted the computer and run statement openR in MATLAB, a Visual C++ Runtime error box appears, with error message:

Also, I ran the provide (D)COM Server test (Server 1 – Basic Test) from the Windows Start button. In the popped up Window “StatConnector Test”, I click “Start R”, and I got the Visual C++ Run-time error message:
Program: C:\...\Statco~1.exe abnormal program termination.
When error dialog box is OKed, the error “Initializing R .. Function call failed” appeared in the StatConnector Test window.

As a result to this, MATLAB failed to run openR, resulting in a similar Visual C++ Runtime error.

Thanks for help.
Patrick Tai.

11 Aug 2009 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman

I made a slider using GUIDE; its handle is hSlider.
I called jSlider = findjobj(hSlider);
I tried this with MATLAB 2007b, this worked very well, thank you.

Then I tried this with MATLAB 2009a, findjobj returned empty!
Actually, calling findjobj with any arguments all returned empty.

What did I do wrong?

20 Apr 2009 Java-based data table Spreadsheet display/editing/sorting of data with multiple features Author: Yair Altman

Add an additional input argument 'fontSz' to createTable:
createTable(pnContainer,headers,data,buttonsFlag,fontSz,varargin)
In the code, after the statement jtable=mtable.getTable;
add the following:

If I may, let me answer my own question on changing font size of createTable cell contents:
One way to do it is to call createTable with additional argument fontSz:
createTable(pnContainer,headers,data,buttonsFlag,fontSz,varargin)

Add the following lines to the code createTable.m

jtable = mtable.getTable; % current line 178
fnt = get(jtable, 'font');
fnt1 = ff.deriveFont(fontSz); % fontSz from input
set(jtable, 'font', 'ff1);

You call createTable with fontSz = 14 (or whatever, default = 11)
That appears to work!
I hope that is useful.

20 Apr 2009 Java-based data table Spreadsheet display/editing/sorting of data with multiple features Author: Yair Altman

createTable fails to work in MATLAB 2008b.
Calls to uitable come back with 'obsolete' version warning.
I changed createTable to call uitable with first argument 'v0':

mtable = uitable('v0',hFig, 'position',tablePosition, 'Data',data, 'ColumnNames',headers);

The warnings disappear, however, the tables do not appear inside the uipanel 'pnContainer' that createTable is called with.

However, if the call is done again, the tables appear!

I am still trying to figure it out. Can someone help?
Thanks.
Patrick.

09 Apr 2009 Java-based data table Spreadsheet display/editing/sorting of data with multiple features Author: Yair Altman

Wonderful program.
I have been using this for long time.
One question:
How do I change the font size/weight of the entries in the table cells?
Thank you.

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com