Auto stash before merge of "main" and "origin/main"
This commit is contained in:
@@ -13,6 +13,7 @@ classdef EML
|
||||
pha_imbal
|
||||
bias
|
||||
u_pi
|
||||
randomkey
|
||||
|
||||
%on instance creation
|
||||
field
|
||||
@@ -40,17 +41,13 @@ classdef EML
|
||||
options.pha_imbal = 0;
|
||||
options.bias;
|
||||
options.u_pi;
|
||||
options.randomkey = 2023;
|
||||
end
|
||||
|
||||
obj.mode = options.mode;
|
||||
obj.fsimu = options.fsimu;
|
||||
obj.lambda = options.lambda;
|
||||
obj.power = options.power;
|
||||
obj.linewidth = options.linewidth;
|
||||
obj.ampl_imbal = options.ampl_imbal;
|
||||
obj.pha_imbal = options.pha_imbal;
|
||||
obj.bias = options.bias;
|
||||
obj.u_pi = options.u_pi;
|
||||
fn = fieldnames(options);
|
||||
for l = 1:numel(fn)
|
||||
obj.(fn{l}) = options.(fn{l});
|
||||
end
|
||||
|
||||
obj.field=sqrt(10^(obj.power/10-3)); %dbm to sqrt(mw)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user