Skip to content

Commit

Permalink
fix incorrect unit in the figure title
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 8, 2023
1 parent 6e41cfe commit 1f2ef63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mmclab/example/demo_mcxyz_skinvessel.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
cfg.unitinmm=0.005;
cfg.method='elem';

figure;
figure;
subplot(121);
plotmesh(cfg.node,cfg.elem);

Expand Down Expand Up @@ -78,18 +78,18 @@

flux=mmclab(cfg);
flux=flux.data;
fluxcw=sum(flux,2)*cfg.tstep*100;
fluxcw=sum(flux,2)*cfg.tstep*100; % multiplying 100 converts 1/mm^2 to 1/cm^2 to match mcxyz output

%% plot simulated photon profiles

subplot(122);
hold on;
qmeshcut(cfg.elem(cfg.elemprop>0,1:4),cfg.node*cfg.unitinmm,log10(fluxcw),'x=0.5','linestyle','none');
qmeshcut(cfg.elem(cfg.elemprop>0,1:4),cfg.node*cfg.unitinmm,log10(fluxcw),'x=0.5','linestyle','none');
view([1 0 0]);
set(gca,'zlim',[0 1],'ylim',[0 1],'zdir','reverse')

box on;
axis equal
title('MMC fluence rate (W/mm^2) per W simulated')
title('MMC fluence rate (W/cm^2) per W simulated')
colorbar;
colormap(jet)

0 comments on commit 1f2ef63

Please sign in to comment.