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

    function out = get(f, property)
%GET Access properties of the model
%
%  GET(F, PROPNAME) gets the specified property of the object.

%  Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc.



if nargin < 2
    error(message('mbc:cgfuncmodel:InvalidArguments'));
end

if ~ischar(property)
    error(message('mbc:cgfuncmodel:InvalidArguments1'));
end

switch property
    case 'function'
        out = f.func;
    case 'funcv'
        out = f.funcv;
    case 'arguments'
        [~,out] = nfactors(f);
    case 'units'
        [~,~,out] = nfactors(f);
    otherwise
        out = get@xregexportmodel(f,property);
end