1 楼: PeriShare
我不知道你的經緯度是多少,只好將就用隨機數生成吧。
clc;clear;
lng = (rand(100,1)-0.5)*360;
lat = (rand(100,1)-0.5)*180;
aCertainNumber = cos(lng*pi/180)+sin(lat*pi/180);%隨便定義的數
LNG = linspace(-180,180,length(lng))';
LAT = linspace(-90,90,length(lat));
[x,y,z] = griddata(lng,lat,aCertainNumber,LNG,LAT, 'v4');
contourf(x,y,z)
axis equal
colorbar
colormap(jet)
xlabel('經度')
ylabel('緯度')
2 楼: 丸梓tattoo
3 楼: QQ379285029
先用plot3。