This enhancement has been made for Release 14 SP1 (R14SP1). For previous product releases, read below for any possible workarounds:
The following describes the directory structure you are looking for. When you download the data from an FTP site, each file needs to be extracted into a tile directory with the name of the compressed files. For example, "e060n40.tar.gz" needs to be extracted into a tile directory named "E060N40". Additionally, all of the tile directories need to be located in the same parent tile directory.
Note the syntax required for the directory path argument when using GTOPO30. The argument requires that the path ends in a slash.
The following is an example that uses GTOPO30 to read files from a directory structure:
latlim = [30 45]; lonlim = [60 90];
gt30files = gtopo30s(latlim , lonlim)
gt30files =
'e060n90'
'e060n40'
p = [pwd '/'];
dir(p)
. .. E060N40 E060N90
[map,refvec] = gtopo30(p,5,latlim,lonlim);
axesm mercator
meshm(map,refvec)
Best Answer