generate heat map based on lat/lon and data value
Show older comments
Hello,
I have a table with Lat/Lon and some error values. I would like to plot the lat/long and create a heatmap using the error value.
lat lon err_d
38.53 -77.40 194.4729
38.75 -77.04 147.9679
39.05 -77.91 340.3928
any help would be greatly appreciated.
Best,
KB
6 Comments
Walter Roberson
on 23 Nov 2021
I wonder if the responses at https://www.mathworks.com/matlabcentral/answers/722079-generate-a-geographical-heat-map?s_tid=srchtitle would help ?
Ketan Bharucha
on 23 Nov 2021
Edited: Walter Roberson
on 23 Nov 2021
Walter Roberson
on 23 Nov 2021
It sounds to me as if you might have "scattered" Lat and Lon, instead of effectively having a grid of them?
Ketan Bharucha
on 23 Nov 2021
Walter Roberson
on 23 Nov 2021
Ketan Bharucha
on 24 Nov 2021
Accepted Answer
More Answers (1)
Peter Perkins
on 23 Nov 2021
0 votes
The heatmap function accepts a table as input, this should be a one-liner. If you are looking for a surface plot, KSSV's answer should work.
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!