If you don't have mapping toolbox and still want to read binary DTED files, then try:
[map latgrid longrid] = mapreader2;
tung (2020). Read DTED elevation data (https://www.mathworks.com/matlabcentral/fileexchange/25897-read-dted-elevation-data), MATLAB Central File Exchange. Retrieved .
I modified it so that the figure drawing happens outside of the function (as when you only want to read a DTED file in your project and not draw everything).
Works fine! I had to replace unrealistic values by following below line 154:
map(map==65535) = NaN;
Does not seem to correctly handle when latitude or longitude is negative. i.e. West and South hemispheres.
Using the variable c assigned on line 138, c(12) designates longitude hemisphere as 'E' or 'W' and c(20) latitude hemisphere as 'N' or 'S'.