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

    function pRemoveInputFromStore(V, pVar, type)
%PREMOVEINPUTFROMSTORE Removes an input from store.
%
%   PREMOVEINPUTFROMSTORE(V, PVAR, TYPE)

%   Copyright 2006-2012 The MathWorks, Inc.

switch type
    case 'expression'
        storeName = 'pValueStore';
    case 'link'
        storeName = 'LinkInputStore';
end

store = V.(storeName);
for n = 1:length( pVar )
    store = removevalue( store, pVar(n) );
end
V.(storeName) = store;