www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/cgrespath.m
function pth=cgrespath(FILE) % CGRESPATH GUI resource path % % PTH=CGRESPATH(FILE) constructs the full path/file for the % fiven cage resource file. % % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. CDIR=fileparts(which(mfilename)); if nargin pth=fullfile(CDIR, 'resource', FILE); else pth=fullfile(CDIR,'resource'); end