www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgprec/guiEditor.m

    function [obj, ok] = guiEditor(obj, varargin)
%GUIEDITOR Open a dialog for editing precision settings
%
%  [OBJ, OK] = GUIEDITOR(OBJ) displays a blocking dialog that allows the
%  user to edit the parameters of the precision object.
%
%  GUIEDITOR(OBJ, 'Parent', HFIG) specifies a parent figure to center the
%  dialog on.

%  Copyright 2006-2015 The MathWorks, Inc.


hDialog = mbcgui.dialog.StandardDialog(obj, ...
    'PageInfoFunction', @generateEditorPages, ...
    'DisplaySinglePageAsTab', false, ...
    'Title', 'Edit Precision Class', ...
    varargin{:});

ok = hDialog.show;
if ok
    obj = hDialog.Object;
end
delete(hDialog);