
Undocumented Secrets of MATLAB
®
-Java Programming528
It relies on the following Java-based mechanism, which is unsupported and undocumented, yet
has existed in the present form for the past several releases:
classes = {'double', 'java.lang.Object'};
menuName = 'My context-menu';
menuItems = {'Inspect', 'Properties', '-', 'class name'};
menuActions = {'inspect($1)', 'get($1)', '', 'class($1)'};
com.mathworks.mlwidgets.workspace.MatlabCustomClassRegistry. . .
.registerClassCallbacks(classes,menuName,menuItems,menuActions);
Customizable Workspace table context-menu
A few other supporting static methods are available in com.m athworks.mlwidgets.
work ...