How can I draw points with 3 column data

2 visualizaciones (últimos 30 días)
Dung Nguyen
Dung Nguyen el 22 de Mzo. de 2023
Comentada: Cameron el 23 de Mzo. de 2023
Dear friend
I have a data file with 3 columns as 1 column is longitude, 2 column is latitude and column 3 is values. I want to draw a figure which I attached. I tried with 'scatter' and 'pcolor' but I didn't succeed. I attached a figure as a example and a data file. I hope someone can help me.

Respuestas (1)

Cameron el 22 de Mzo. de 2023
You can adjust your plot as needed.
data = webread('');
numericdata = str2num(data);
longitude = numericdata(:,1);
latitude = numericdata(:,2);
color = numericdata(:,3);
  2 comentarios
Cameron el 23 de Mzo. de 2023
All of the geoaxes plots I'm aware of are only available in R2017b and later releases. If possible, I would try to update to a more recent version as there have been 14 major releases since R2016a.

Iniciar sesión para comentar.


Más información sobre Geographic Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by