getpath_jd

PURPOSE ^

SYNOPSIS ^

function pathname = getpath_jd(filename);

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function pathname = getpath_jd(filename);
0002 %
0003 fullpath = which([filename]);
0004 %
0005 ns = length(fullpath);
0006 while ns > 0 & fullpath(ns) ~= '\'  & fullpath(ns) ~= '/' 
0007     ns = ns - 1;
0008 end
0009 
0010 pathname = fullpath(1:ns-1);

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.