From 170534c5d6aa5dc85ef87388ca6b2d9e3f61c58c Mon Sep 17 00:00:00 2001 From: overengineer <54alpersaid@gmail.com> Date: Thu, 28 Feb 2019 10:54:26 +0300 Subject: [PATCH] fix plot --- Material3D.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Material3D.m b/Material3D.m index d3c7ab5..494c257 100755 --- a/Material3D.m +++ b/Material3D.m @@ -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); @@ -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);