⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_mc.m

📁 Monte Carlo simulation
💻 M
字号:
% test the performance and give an example of the using of MC

clear all;
close all;
clc;

% initialize the input data structure
input= InitializeInput('inputdatafile_1');
% call MC
[output] = MC(input);

%plot reflectance
dr = input.dr;
nr = input.nr;
rd_r = output.rd_r;
log_rd_r = log(rd_r);
rindex = (dr:dr:nr*dr)-dr/2; % This is the way to generate ticks in r direction

figure('name','reflectance')

subplot(2,1,1)
plot(rindex,rd_r)
grid on
title('reflectance')
xlabel('distance[cm]')
ylabel('reflectance')

subplot(2,1,2)
plot(rindex,log_rd_r)
grid on
title('LOG(reflectance)')
xlabel('distance[cm]')
ylabel('LOG(reflectance)')

⌨️ 快捷键说明

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