Dear Professor Fang:
I have been trying to use your mcxlab code for one week and encoured some problems about this code named as mcxlab, which I could not solve.
(1.)When I read the Readme, I find the folloing part which means that by selecting cfg.outputtype=' X', I will get the fulence.
But when I tried to use this in the code by adding the following code
cfg.outputtype='X'; in the demo.
, it did not work and give the following the error, then the matlab software will be closed.
If I don't add this code, just use the default cfg, then the output.data has the sane dimension as the file cfg.vol, for example 120*100*50*10. What I want is the boundary flux which can be detected by detectors such as PMT. Please help me obtain the measureable data on the boundary. Could you explain the difference between the above three items: output flux , fluence ,energy deposit.
(2) If I want to compare the solution of Diffuse Equation with that of this mcxlab, I should write codes like cfg.srctype='isotropic'; and set the cfg.srcpos one mean free length under the surface of the tissue. Since the sourcetype is istotropic, the source has nothing with the direction. But if I use code as follows
cfg.srctype='isotropic';
cfg.srcpos=[60,50,49];
cfg.srcdir=[0 0 0];%Mean to have no direction
The matlab will give the error info
Index exceeds matrix error in dimensions.contourf(log10(squeeze(sum(f1.data(:,51,:,:),4))'),1:0.5:8);
However,When I use the code as follows
cfg.srctype='isotropic';
cfg.srcpos=[60,50,49];
Matlab will get the good results. Please help me check whether this is correct to use isotropic source.
Please help me solve these problems.I am looking forward your reply.
Dear Professor Fang:
I have been trying to use your mcxlab code for one week and encoured some problems about this code named as mcxlab, which I could not solve.
(1.)When I read the Readme, I find the folloing part which means that by selecting cfg.outputtype=' X', I will get the fulence.
But when I tried to use this in the code by adding the following code
cfg.outputtype='X'; in the demo.
, it did not work and give the following the error, then the matlab software will be closed.
If I don't add this code, just use the default cfg, then the output.data has the sane dimension as the file cfg.vol, for example 120*100*50*10. What I want is the boundary flux which can be detected by detectors such as PMT. Please help me obtain the measureable data on the boundary. Could you explain the difference between the above three items: output flux , fluence ,energy deposit.
(2) If I want to compare the solution of Diffuse Equation with that of this mcxlab, I should write codes like cfg.srctype='isotropic'; and set the cfg.srcpos one mean free length under the surface of the tissue. Since the sourcetype is istotropic, the source has nothing with the direction. But if I use code as follows
cfg.srctype='isotropic';
cfg.srcpos=[60,50,49];
cfg.srcdir=[0 0 0];%Mean to have no direction
The matlab will give the error info
Index exceeds matrix error in dimensions.contourf(log10(squeeze(sum(f1.data(:,51,:,:),4))'),1:0.5:8);
However,When I use the code as follows
cfg.srctype='isotropic';
cfg.srcpos=[60,50,49];
Matlab will get the good results. Please help me check whether this is correct to use isotropic source.
Please help me solve these problems.I am looking forward your reply.
--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To post to this group, send email to mcx-...@googlegroups.com.
Visit this group at https://groups.google.com/group/mcx-users.
For more options, visit https://groups.google.com/d/optout.
Dear Professor Fang:
Dear Professor Fang, Thanks for your reply. I am clear about all the questions except the difference among the physical meaning of the terms including output flux , fluence ,energy deposit.
--