MATLAB: Anyway to close cftool programmatically

close cftool programmatically

Hi:
is there anyway to close cftool programmatically?
Thanks!
Yu

Best Answer

You can use the following piece of code for closing “cftool”:
h = getappdata( groot, 'SurfaceFittingToolHandle' );
clearSessionChanged(h);
closeSftool(h)
Please be aware that this might not work in future releases of MATLAB.
Related Question