-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsim_obj.m
More file actions
62 lines (51 loc) · 1.58 KB
/
Copy pathsim_obj.m
File metadata and controls
62 lines (51 loc) · 1.58 KB
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
54
55
56
57
58
59
60
61
62
classdef sim_obj
%% SIM_OBJ
%% How to use
% This object stores the simulation information outside the simulated
% systems data, so it can update needed parameters like needed runtime
% and simulation display information.
%
% Written by JRW, 6/21/2024
%% Properties ---------------------------------------------------------
properties
% Display parameters
freq_display;
% Simulation limits for each system
max_frames = 1250;
max_errors = Inf;
var_tol = 0;
saved_results_length = 1;
frames_so_far = 0;
max_time;
% Simulation data
var_list;
var1 = "N_tsyms";
var2 = "NA";
x_var = "EbN0_db";
x_range = 3:3:18;
var1_range = [16,64];
var2_range = ["rect","sinc","rrc"];
var_defaults = {18,4,"MPSK",15e3,4e9,500,16,64,8,"rect",1};
rrc_vals = 1;
num_systems = 1;
current_system = 0;
sims_completed = 0;
init_time
final_time
% Reload setting
reload = true;
end
properties (Dependent)
total_sims
end
methods
%% DEPENDENT VARIABLES --------------------------------------------
function result = get.total_sims(obj)
result = length(obj.x_range) * obj.num_systems;
end
function obj = sim_obj()
obj.init_time = datetime('now');
end
%% INTERNAL FUNCTIONS ---------------------------------------------
end
end