inputdatafile_1.m

来自「Monte Carlo simulation」· M 代码 · 共 20 行

M
20
字号
% sample input file which contains user defined parameters for simulation
%
% Bo Qiang 10/18/05
% qiang.2@osu.edu

np = 100000; % Number of photons to be simulated.
dz = 0.2; % Grid separation for z coordinate. [cm]
dr = 0.2; % grid separation for r coordinate. [cm]
nz = 10; % Number of grids considered in z coordinate, array ranges from 1 to nz.
nr = 20; % Number of grids considered in r coordinate, array ranges from 1 to nr.
na = 30; % Number of grids considered in alpha coordinate, array ranges from 1 to na.
nl = 2; % Number of layers (not include the medium above and below.
n = [1 1.3 1.4 1]; % Refractive index for each layer. The first and last elements are for 
                   % medium above and below, respectively. So, there should have (nl+2) elements.
mua = [0.1 0.15]; % Absorption coefficients for each layer. [cm-1]
mus = [10 10]; % Scattering coefficients for each layer. [cm-1]
g = [0.9 0.9]; % Anisotropy for each layer.
d = [1 1e8]; % Depth for each layer. [cm] 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?