www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@localresponse/pGetModel.m

    function val = pGetModel(R,val)
%PGETMODEL Private function.
%
%   VAL = PGETMODEL( RESPONSE, VALUE )

%   Copyright 2007-2010 The MathWorks, Inc.

val = mbcutils.handleArray(0);
if R.isNotNull    
    m = model(R.Object);
    % Initialise the internal store for the model
    val = mbcmodel.CreateModel( m,...
        'Response', R);
end