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.
29 lines
749 B
Matlab
29 lines
749 B
Matlab
classdef Opticalsignal < Signal
|
|
%OPTICALSIGNAL Summary of this class goes here
|
|
% Detailed explanation goes here
|
|
|
|
properties
|
|
nase
|
|
lambda_nm
|
|
end
|
|
|
|
methods
|
|
function obj = Opticalsignal(signal, fsym, fsimu)
|
|
%OPTICALSIGNAL Construct an instance of this class
|
|
% Detailed explanation goes here
|
|
obj = obj@Signal(signal, fsym, fsimu);
|
|
|
|
obj.nase = 0;
|
|
obj.lambda_nm = [];
|
|
|
|
end
|
|
|
|
function outputArg = method1(obj,inputArg)
|
|
%METHOD1 Summary of this method goes here
|
|
% Detailed explanation goes here
|
|
outputArg = obj.Property1 + inputArg;
|
|
end
|
|
end
|
|
end
|
|
|