Search code examples
javamatlabundocumented-behavior

What does JavaFrame do in Matlab?


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?


Solution

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