I am creating a filled contour plot for my data as follows:
X=(-50:50)'./10; Y=(-50:50)./10;a=exp(-(X.^2*ones(size(Y))+ones(size(X))*Y.^2));% polar coordinates
r=((1:101)./100)'; th=2*pi*(0:100)/100;u=r*cos(th); v=r*sin(th);contourf(u,v,a,30);
The generated CONTOURF contour plot does not fill the axes space and creates unexpected and incorrect results.
Best Answer