1 function plot_error_slice(e,r,X,tstring,params)
2 % plot_error_slice(e,r,F,K,X,tstring,params)
8 s=round(0.5+params.slice*n(2)*(1-eps)); % y index of slice
9 xx=squeeze(X{1}(:,s,:));
10 yy=squeeze(X{2}(:,s,:));
11 zz=squeeze(X{3}(:,s,:));
12 t=sprintf('slice %g y=%g %s',s,yy(1),tstring);
13 ff = 'no_error_title';
17 [s1,s2,s3]=ind2sub(n,i);
18 residual(s1,s2,s3)=r(i);
20 figure(params.res_slice_fig)
21 mesh(xx,zz,squeeze(residual(:,s,:)));
24 if isfield(params,ff) && ~getfield(params,ff)
27 title(['residual ',t])
33 [s1,s2,s3]=ind2sub(n,i);
34 lambda_err(s1,s2,s3)=e(i);
36 figure(params.err_slice_fig),clf
37 l=squeeze(lambda_err(:,s,:));
41 if isfield(params,ff) && ~getfield(params,ff)