MATLAB Answers

How to display two dataset comparison in one map graph?

2 views (last 30 days)
Hiten Xpertlab
Hiten Xpertlab on 13 Jul 2021
Answered: Chunru on 13 Jul 2021
Hello guys, I have two 100*100 matrix and I have to display them in one single Europe map graph with comparison. but I don't know how to do that and I have a deadline today. please guys help me to do this. thank you in advance

More Answers (1)

Chunru on 13 Jul 2021
With the same map region, you can plot the difference of data.
lat = linspace(10, 20, 11);
lon = linspace(5, 15, 11);
[latg, long] = meshgrid(lat, lon);
data1 = randn(length(lat), length(lon));
data2 = randn(length(lat), length(lon));
geoshow(latg, long, data2-data1, 'DisplayType', 'surface')


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by