Skip to content

Commit

Permalink
fix plot
Browse files Browse the repository at this point in the history
  • Loading branch information
overengineer committed Feb 28, 2019
1 parent 5958dff commit 170534c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Material3D.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
%end
% slice(:,:)=Ez(:,:,nz/2);
% slice = log(slice.*(slice>0)); %logarithmic scale
% imagesc(slice)
% im = imagesc(slice);
% im.AlphaData = 0.05;
slice(:,:)=Ez(:,ny/2,:);
slice = log(slice.*(slice>0)); %logarithmic scale
xr = makehgtform('xrotate',pi/2);
Expand All @@ -118,8 +119,7 @@
zr = makehgtform('zrotate',pi);
t = makehgtform('translate',[-nx/2 -ny nz/2]);
g = hgtransform('Matrix',yr * zr * t);
im = imagesc(g,slice)
im.AlphaData = 0.1;
imagesc(g,slice);
[X,Y] = meshgrid(nx:-1:1,1:1:ny);
Z(:,:) = (eps(:,:,1)/eps0 - adipose)*(nz/4)/tumor - nz/2;
sr = surf(Y,X,Z);
Expand Down

0 comments on commit 170534c

Please sign in to comment.