This is in response to your email in which you wrote the following:
I am trying to call Matlab commands from Java and.....
PLEASE NOTE: The following information relates to an experimental interface, is not officially supported, and is subject to change. We cannot provide any more information on this functionality beyond what is listed in this document.
There is an article at the following URL that contains an example showing how to call MATLAB from Java:http://www.mathworks.com/company/newsletter/win02/patterns.shtml
This involves importing "com.mathworks.jmi.*". This will give you access to the MATLAB and MatlabPath classes. The MATLAB class enables Java to send commands to MATLAB, while the MatlabPath class provides access to events affecting the MATLAB path (including cd). This will only work with Java code that was originally called using MATLAB's Java interface. This functionality has been present since MATLAB 6.0.
Again, this functionality is neither documented nor supported and is subject to change in future versions of MATLAB.
All the best.
Application Support Engineer
Check Out Our New Support Web Page!
The MathWorks, Inc. email: firstname.lastname@example.org <mailto:email@example.com> 3 Apple Hill Drive WWW : <http://www.mathworks.com> Natick, MA 01760 FTP : <ftp://ftp.mathworks.com>
Phone: (508) 647-7000 FAX : (508) 647-7201 ==================================================================
** 24-hour TECHNICAL SOLUTIONS available through WWW, and FTP ** ==================================================================