Frage

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?

War es hilfreich?

Lösung

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.

Andere Tipps

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".

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top