Hello,
I notice problems with color intepolation using surf plot.
There is a similar problem described here, but I can't modify the proposed solution for my case since the solution is not generalized.
Fig 1: Actual result of the surf plot (wrong)
Fig 2: what I would like to obtain (correct)
Here is the code that I am using.
X =[-1.5000e-003 0.0000e+000 1.5000e-003-1.5000e-003 0.0000e+000 1.5000e-003-1.5000e-003 0.0000e+000 1.5000e-003 ];Y =[500.0000e-006 500.0000e-006 500.0000e-0060.0000e+000 0.0000e+000 0.0000e+000-500.0000e-006 -500.0000e-006 -500.0000e-006];Z =[3.1860e+000 4.7810e+000 6.3721e+0001.5989e+000 275.9198e-003 1.5991e+0006.3721e+000 4.7811e+000 3.1860e+000];surf(X,Y,Z,'FaceColor','interp'); asp_ratio = daspect; daspect([1 1 asp_ratio(3)]); colormap(jet(10));box on;view(2);
Best Answer