www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimfuncs/sendtoprefs.m
function obj = sendtoprefs(obj) %SENDTOPREFS Save object data to preferences file % % OBJ = SENDTOPREFS(OBJ) saves all of the currently defined functions to % the MBC preferences. % Copyright 2000-2014 The MathWorks, Inc. and Ford Global Technologies, Inc. P = mbcprefs('mbc'); S=getpref(P,'Optimization'); S.Functions = obj.FunctionNames(:); setpref(P,'Optimization',S);