www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/guiSetFitOptions.m

    function [con, ok,opts] = guiSetFitOptions(con, action,opts)
%GUISETFITOPTIONS GUI for the user to set the fit options for a development node
%
%  [BDEV, OK] = GUISETFITOPTIONS(BDEV, ACTION)
%  [BDEV, OK] = GUISETFITOPTIONS(BDEV, 'All')
%  [BDEV, OK] = GUISETFITOPTIONS(BDEV, 'SpecialPoints')
%  [BDEV, OK] = GUISETFITOPTIONS(BDEV, 'BoundaryPoints')
%  [BDEV, OK] = GUISETFITOPTIONS(BDEV, 'Constraint')
%
%  See also XREGBDRYDEV, XREGBDRYDEV/FITCONSTRAINT.

%  Copyright 2005-2008 The MathWorks, Inc. and Ford Global Technologies, Inc.

% Constraint must be initialized before calling

switch lower(action)
    case 'all'
        Title = 'Boundary Model Fit Options';
    case 'specialpoints'
        Title = 'Special Point Options';
    case 'boundarypoints'
        Title =  'Boundary Point Options';
    case 'constraint'
        Title = 'Constraint Fit Options';
    otherwise
        error(message('mbc:xregbdrydev:InvalidArgument'));
end
    
displayOptions = { ...
    'expanded', true, ...
    'title', Title, ...
    'topname', 'Options', ...
    'basiclayout', false };
[opts, ok] = gui_setup( opts, 'figure', displayOptions, con );
end

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|