-
Notifications
You must be signed in to change notification settings - Fork 0
/
Demo.m
55 lines (38 loc) · 1.01 KB
/
Demo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%% General conditions:
interactive = 1;
usegraphics = 1;
% when rectifyIndication==1, the transimpedance
% circuit will rectify the results, eliminating
% negative results.
rectifyIndication = 1;
% Define the model default values
% Room dimensions
W = 4;
L = 4;
H = 2.5;
% Steps for travelling the room
Wstep = W/10;
Lstep = L/10;
% Number of repetitions
Nrep = 5;
%% Define experiment conditions
% Emitters
n_Emitters = 2; % Number of emitters
Pb = 0.5 ; % Transmitted power
Ps = 0.025;
% Half-power angles
HPA_v = [ 60 45 ];
% Lambertian mode number
m_v = -log(2) ./ log(cosd(HPA_v));
% Receivers:
% Sensor configuration in meridians and parallels
NmNp = ...
[32 8
48 12
64 16];
Psi_v = [pi/18 pi/12 ]; % Hemi-Fov
Ar = 1e-6; % Active receiving area
Ts = 1; % Optical filter gain
n = 1; % Receiver's internal refractive index
R = 1; % Receiver's responsivity
validReadingThreshold = 8;