www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/+cgsimfill/@EvalPoints/removeLink.m

    function removeLink(V, pVar)
%REMOVELINK remove a link
%
%   REMOVELINK(V, PVAR) removes the link from PVAR and resets PVAR to
%   default value.

%   Copyright 2006-2008 The MathWorks, Inc.

if length( pVar )>1 
    error(message('mbc:cgsimfill:evalpoints:InvalidInput3'));
end
[notused, defaultvalue] = pGetFromStore( V, pVar );
pSetInStore( V, pVar, defaultvalue{1}, 'user' );
 
if V.AllowLoops
    V.updateLoops;
end