www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcprefs/setsetname.m
function setsetname(p,nm) %SETSETNAME Set the name of a preference set. % % SETSETNAME(P,NM) sets the current preference set to have the name NM. % % Use ISSETNAME to check if NM has already been taken or not. % Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~pr_datastore('isprefset',nm) pr_datastore('rename',nm); else error(message('mbc:mbcprefs:InvalidProperty2', nm)); end