In MATLAB 7.0.1, the help for the PCOLOR function states the following:
PCOLOR is really a SURF with its view set to directly above.
Yet, the example below seems to show that this is not the case:
[X,Y]=ndgrid(1:8,1:10);Z=nan*zeros(size(X));for cnt=1:1:8, Z(cnt,cnt:(cnt+2))=[1,1,1];end;% plot using pcolor and surf seen from above
figure;subplot(3,1,1), pcolor(X,Y,Z);subplot(3,1,3), surf(X,Y,Z); view(2)
Best Answer