% Demonstration of Electrical Impedance Tomography using a 2D diffusion
% model in a rectangular grid.
%
% Samuli Siltanen March 2025

% Load results from file
load data/FD_EIT_2D_demo_voltmat_trig1  voltmat 
voltmat1 = voltmat;
load data/FD_EIT_2D_demo_voltmat_trig2  voltmat 
voltmat2 = voltmat;

% Plot the voltage matrices
figure(3)
clf
imagesc(imresize([voltmat1,voltmat2,(voltmat2-voltmat1)],10,'nearest'))
axis image
axis off
print -dpng images/FD_EIT_voltmat_trig_comparison.png
