www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@mbctransform/private/pAnonFunc.m
function f = pAnonFunc(fstr,args) %PANONFUNC make anonymous function % % f = pAnonFunc(fstr,args) % Copyright 2007-2009 The MathWorks, Inc. if nargin<2 args = symvar(fstr); end if iscell(args) args = sprintf('%s,',args{:}); args = args(1:end-1); end f = str2func(sprintf('@(%s) %s',args,fstr));