Get Terrain Height Matlab