www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimfuncs/private/pfindfunction.m
function found = pfindfunction(fcn) %PFINDFUNCTION Try to find a function on MATLAB's path % % FOUND = PFINDFUNCTION(FCN) returns true if FCN is found on MATLAB's % search path. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. ex = exist(fcn); found = (ex==2) || (ex==6);