Getting help on MATLAB's com.mathworks internals

前端 未结 4 2099
旧时难觅i
旧时难觅i 2021-01-06 00:31

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

相关标签:
4条回答
  • 2021-01-06 00:35

    There is no official documentation nor support for these classes. Moreover, these classes and internal methods represent internal implementation that may change without notice in any future Matlab release. This said, you can use my uiinspect and checkClass utilities to investigate the internal methods, properties and static fields. These utilities use Java reflection to do their job, something which is also done by the built-in methodsview function (I believe my utilities are far more powerful, though). In this respect, I believe we are not crossing the line of reverse-engineering which may violate Matlab's license.

    If you are looking for documentation, then my UndocumentedMatlab.com website has plenty of relevant resources, and more is added on a regular basis so keep tuned.

    I am also working on a book that will present a very detailed overview of all these internal classes, among other undocumented stuff - I hope to have publication news later this year.

    0 讨论(0)
  • 2021-01-06 00:54

    I am an eclipse fan. If you use that as your IDE, the jar can be imported into one of your projects and you can inspect the methods in there.

    0 讨论(0)
  • 2021-01-06 00:55

    Undocumented Matlab is a great place to start looking.

    0 讨论(0)
  • 2021-01-06 01:00

    To find out more about java objects, I use uiinspect.

    The only place I know that is documenting the Matlab hidden Java stuff is Undocumented Matlab by Yair Altman. His site lists plenty of very useful tricks. Being able to use Java to format text in list boxes has come in very handy for me, for example.

    EDIT

    The man has spoken. Listen to him, since I don't think there's anyone outside MathWorks who knows more about Matlab's internal java code.

    0 讨论(0)
提交回复
热议问题