Hi, I have problem with plotting rainfall data (with latitude and longitude) on map. I googled it, there were many answers but couldn't do it. My data has latitude(1×86400),longitude(1×86400) and corresponding rainfall (1×86400). I have to plot rainfall data on map corresponding to latitude and longitude. My code is similar to below one but not working though not showing any error. Need help.Thank you.
A=importdata('new.dat');lat=A(:,1);lon=A(:,2);lat1=meshgrid(lat,1:25);lon1=meshgrid(lon,1:25);z=A(:,3);z1=meshgrid(z,1:25);worldmap('world') % initializes map
contourm(lat1,lon1,z1) % plots contours
c = load('coast.mat'); % loads coastlines
plotm(c.lat,c.long) % plots coastlines
Best Answer