MATLAB: How to read multiple dted files using Mapping Toolbox

dtedmappingMapping Toolbox

I have multiple dted files in a directory and I want to read these files at once. Is this possible?

Best Answer

It is possible to read multiple dted files at once using DTED command in Mapping toolbox.If latitude limits, longitude limits and Sample factor are known then DTED command can be used. An illustration is as follows:
If the location of the folder for dted files is 'C:\SampleFiles' then use DTED command as shown:
latlim = [30.1 31.5];
lonlim = [35.0 35.9];
samplefactor = 5;
[capetopo,caperef] = dted(C:, samplefactor, latlim, lonlim); % include only C: drive % in the path
Note: If 'SampleFiles' folder is included in path it brings up a GUI and asks the user to select the files manually.