Watch this Author's files
You can make it more like figure() by using varargout. This way you can avoid having to put a semi-colon at the end.
Change the function call to: function varargout = sfigure(h)
And add this to the end: if nargout == 1 varargout{1} = h; end
Contact us