I see that code

plot(1:5); 
jFrame = get(gcf,'JavaFrame');

it works and returns some result.

What does it return? What is background of this functional? Is it documented? I can't find JavaFrame property in the list of figure properties. How can I find more similar functions?

有帮助吗?

解决方案

It's a hidden property of the figure handle, and it's undocumented. According to Yair Altman's blog "Undocumented Matlab", it enables access to the GUI’s underlying Java peer object.

其他提示

It's an undocumented hidden property of the figure that returns a handle to the underlying JFrame of the MATLAB figure window, which is implemented in Java. There are lots of things that you can do with it - to find out about them, read some of the articles on Yair Altman's blog "Undocumented MATLAB".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top