1 function check_P(P,X,XC)
7 YC(:,:,i)=YC(:,:,i)-YC(:,:,1);
10 xmax(i)=max(XC{i}(:));
11 xmin(i)=min(XC{i}(:));
13 f = @(x1,x2,y)(y-xmin(3))/(xmax(3)-xmin(3));
14 FC = f(XC{1},XC{2},YC);
15 F = reshape(P*FC(:),n);
19 plot_error_slice(F,[],X,'interpolation',p)
21 plot_error_slice(FC,[],XC,'coarse',p)