MATLAB: 3d plotting of Lat, Long and depth

3d3d plotsaxiscoordinatesdepthearthquakeshypocentrescale

Hi,
I am trying to create a 3D plot – please see attached image.
However, i need to flip the scale so that the depth (km) increases downwards and I need to plot it in a 1:1 aspect ratio as all 3 axis are not equal in reality… Does anyone know how to do this?
Eventually i will need to plot elipsoid errors around these data points – if anyone has any experience with this, then I would be extremely grateful if you could share how you did it!
Many thanks!!

Best Answer

Try this:
axis equal
ax = gca;
ax.ZDir = 'reverse';