www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/xregrespath.m

    function pth=xregrespath(FILE)
% XREGRESPATH  GUI resource path 
%
%  PTH=XREGRESPATH(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