MATLAB: Do I receive an error when attempting to use the DTED command to read files within a directory in Mapping Toolbox 3.0 (R2009b)

Mapping Toolbox

I am trying to read digital terrain elevation files using the DTED command. It works fine if I call DTED with the filename:
data1 = dted('C:\files\dted\w098\n32.min', 1, [32 33], [-97.3 -97.5]);
However, if I call DTED with the directory name
data2 = dted('C:\files\dted', 1, [32 33], [-97.3 -97.5]);
I receive the following error:
??? Error using ==> dted>dtedc at 217
No data for requested area.
Error in ==> dted at 104
[map,refvec,UHL,DSI,ACC] = dtedc(varargin{:});

Best Answer

This error occurs when the DTED function is called with the path to the 'dted' directory. Instead, please specify the path to the parent directory of the 'dted' directory as the 'dirname' input into the DTED function.
data = dted('C:\files', 1, [32 33], [-97.3 -97.5]);