www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcprefs/addset.m

    function addset(p,nm)
%ADDSET Add a new preference set.
%
%   ADDSET(P,NM) adds a new preference set called NM.

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


if ~pr_datastore('isprefset',nm)
    pr_datastore('createSet',nm);
else
    error(message('mbc:mbcprefs:InvalidProperty', nm));
end