start implementation of class based simulation of a IM/DD communication system. Mostly based on Move-It but cleaned up and with focus on direct detection, however I try to keep the versatility of move-it alive.
32 lines
761 B
Plaintext
32 lines
761 B
Plaintext
classdef Signal
|
|
%SIGNAL Summary of this class goes here
|
|
% Detailed explanation goes here
|
|
|
|
properties
|
|
signal
|
|
nase
|
|
fsym
|
|
fsimu
|
|
lambda
|
|
end
|
|
|
|
methods
|
|
function obj = Signal(signal, fsym, fsimu)
|
|
%SIGNAL Construct an instance of this class
|
|
% Detailed explanation goes here
|
|
obj.signal = signal;
|
|
obj.nase = 0;
|
|
obj.fsym = fsym;
|
|
obj.fsimu = fsimu;
|
|
obj.lambda =
|
|
end
|
|
|
|
function outputArg = method1(obj,inputArg)
|
|
%METHOD1 Summary of this method goes here
|
|
% Detailed explanation goes here
|
|
outputArg = obj.Property1 + inputArg;
|
|
end
|
|
end
|
|
end
|
|
|