How can I draw points with 3 column data
2 views (last 30 days)
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.
Cameron on 22 Mar 2023
You can adjust your plot as needed.
data = webread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1332705/tec.txt');
numericdata = str2num(data);
longitude = numericdata(:,1);
latitude = numericdata(:,2);
color = numericdata(:,3);