MATLAB Answers

I have latitude, longitude and Height data in form matrix, then I would plot these values in 3D plot just like how surface looks.

15 views (last 30 days)
sivaiah borra
sivaiah borra on 13 Oct 2018
Commented: sivaiah borra on 15 Oct 2018
I just want to plot like 3D surface how generally we see with lat, lon and height data. Can I plot this directly with any commands or should I do anything else in data before we apply commands

  0 Comments

Sign in to comment.

Answers (1)

Yavor Kamer
Yavor Kamer on 13 Oct 2018
lat and lon are in degrees and height is in meter/kilometers etc. If you want to plot them in the same plot (with plot3 for example) you need to convert lat and lon to the same units as your height.
If you have mapping toolbox you can use mfwdtran with a suitable projection for your region of interest.

  3 Comments

sivaiah borra
sivaiah borra on 15 Oct 2018
I converted lat, lon data in degrees into northing and easting in meters. so, i have easting, northing and height data in same units(meters) then, how would i plot 3D image in matlab with easting on X-axis, Northing on Y-axis and height on Z axis with height colorbar?
Yavor Kamer
Yavor Kamer on 15 Oct 2018
You can use the function scatter3 like this:
scatter3(x,y,z,10,z)
10 is the symbol size and the last z tells it to use altitude for coloring
sivaiah borra
sivaiah borra on 15 Oct 2018
Thank you for your answer. It is giving only 3D line graph but, i want to plot 3D spatial plot or 3D Surface plot
just like how surface topography appears in 3D as given above image

Sign in to comment.

Sign in to answer this question.