File size: 445 Bytes
bc2cdff | 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 | % Plot the conductivity
%
% Samuli Siltanen May 2012
% Set font size
fsize = 14;
% Create evaluation points
t = linspace(-1,1,256);
[x1,x2] = meshgrid(t);
z = x1 + i*x2;
% Evaluate potential
c = heartNlungs(z);
c(abs(z)>1) = NaN;
% Two-dimensional plot
figure(2)
clf
imagesc(c,[0.4,2])
colormap jet
map = colormap;
colormap([[1 1 1];map]);
axis equal
axis off
colorbar
%print -dpng heartNlungs2D.png
|