MATLAB: How to plot a map of T2 of WRF output

't2') longitude=ncread(filename'xlat') mymap=pcolor(longitude'xlong') latitude=ncread(filenamefilename=('d:\tces_ctl.nc') temp=ncread(filenamelatitudetemp) error using pcolor (line 61) matrix dimensions must agree.

I am new to Matlab. I want to creat a map of temperature (T2) produced y WRF model having dimensions x=48, y=66 and Times=12. I applied following command but showed error.
filename=('D:\Tces_ctl.nc');
temp=ncread(filename,'T2');
longitude=ncread(filename,'XLONG');
latitude=ncread(filename,'XLAT');
mymap=pcolor(longitude,latitude,temp);
Error using pcolor (line 61) Matrix dimensions must agree. Anyone could please me guide about it or share me email so that I could send that file via email.

Best Answer

mymap=pcolor(longitude,latitude,temp');
You transpose the matrix and plot.
Related Question