create a figure
f = figure(num);
f = figure("PropertyName1", Propertyvalue1, ..., ..., "PropertyNameN", PropertyvalueN);
This routine creates a figure. If an ID is given, the figure corresponding to this ID is created. Otherwise, the window is created with the first free ID, that is the lowest integer not already used by a window.
: :f handle of the newly created window. :
:
// Create figure having figure_id==3
h=figure(3);
// Add a text uicontrol in figure 3
`uicontrol`_(h, "style", "text", ...
"string", "This is a figure", ...
"position", [50 70 100 100], ...
"fontsize",15);
// Create figure having figure_id==1
figure();
// Add a text uicontrol in figure 1
`uicontrol`_("style", "text", ...
"string", "Another figure", ...
"position", [50 70 100 100], ...
"fontsize", 15);
// Close current figure (ie figure 1)
`close`_();
// close figure 3
`close`_(h);