-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_results.m
30 lines (22 loc) · 957 Bytes
/
plot_results.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
clear all
clc
load highnoise_Neumann_data2 sig_app lambda_post lambda_pr_gen Vert_all n_neigh eta_cond std_noise_data %load the result
n_step=size(sig_app,2);%number of steps in the algorithm
tri=delaunay(Vert_all(1,:),Vert_all(2,:));%create a delaunay mesh, it is used in visualizing the conductivity
n_vert=size(Vert_all,2);%total number of vertices including center (used in plotting the conductivity)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for i=1:n_step
figure(i)
%compute the number of vertices from current updated ring to the boundary
sig_app_plot=[sig_app{i};NaN(n_vert-length(sig_app{i}),1)];%the unknown conductivities set to NaN
trisurf(tri,Vert_all(1,:),Vert_all(2,:),sig_app_plot);%plot the approximated conductivities
view(2)
title(['Layer number= ',num2str(i)])
shading interp
axis('off')
caxis([0 5])
colormap('jet')
axis equal;
colorbar;
pause(0.05)
end