Getting help on MATLAB's com.mathworks internals

Posted by Richie Cotton on Stack Overflow See other posts from Stack Overflow or by Richie Cotton
Published on 2010-04-06T14:12:32Z Indexed on 2010/04/06 22:33 UTC
Read the original article Hit count: 355

Filed under:
|

It is possible to access bits of MATLAB's internal java code to programmatically change MATLAB itself. For example, you can programmatically open a document in the editor using

editorServices = com.mathworks.mlservices.MLEditorServices;
editorServices.newDocument()  %older versions of MATLAB seem to use new()

You can see the method signatures (but not what they do) using viewmethods.

viewmethods(com.mathworks.mlservices.MLEditorServices)

I have a few related questions about using these Java methods.

Firstly, is there any documentation on these things (either from the Mathworks or otherwise)?

Secondly, how do you find out what methods are available? The ones I've come across appear to be contained in JAR files in matlabroot\java\jar, but I'm not sure what the best way to inspect a JAR file is.

Thirdly, are there functions for inspecting the classes, other than viewmethods?

Finally, are there any really useful methods that anyone has found?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about java