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.
26 lines
694 B
Matlab
26 lines
694 B
Matlab
classdef Electricalsignal < Signal
|
|
%ELECTRICALSIGNAL Summary of this class goes here
|
|
% Detailed explanation goes here
|
|
|
|
properties
|
|
|
|
end
|
|
|
|
methods
|
|
function obj = Electricalsignal(signal, fsym, fsimu)
|
|
%ELECTRICALSIGNAL Construct an instance of this class
|
|
% Detailed explanation goes here
|
|
obj = obj@Signal(signal, fsym, fsimu);
|
|
|
|
end
|
|
|
|
function outputArg = method1(obj,inputArg)
|
|
%METHOD1 Summary of this method goes here
|
|
% Detailed explanation goes here
|
|
outputArg = obj.Property1 + inputArg;
|
|
end
|
|
|
|
end
|
|
end
|
|
|