Is there a way to close (or hide) a Stateflow Editor programmatically?
I could not find any hint about this in the documentation or the net. The only way I know of is to close the model entirely, but I do not want this, as a changed model might need to be saved beforehand, so user interaction is needed.
Here's a simple example what I am currently doing:
sfr = sfroot;
% For simplicity I assume exactly one chart is found
chart = sfr.find('-isa', 'Stateflow.Chart');
% This can be used to display a chart
chart.view;
% How can the shown Stateflow Editor be closed again?
Now the chart
object has an Editor
property. But neither this nor the chart object itself have any useful member functions.
I am not bound on a specific Matlab release, so any help would be greatly appreciated!