ecoc measurements
This commit is contained in:
@@ -38,6 +38,9 @@ classdef ChannelFreqResp < handle
|
||||
Nfft
|
||||
df
|
||||
faxis
|
||||
|
||||
fileName
|
||||
path
|
||||
end
|
||||
|
||||
methods (Access=public)
|
||||
@@ -194,7 +197,9 @@ classdef ChannelFreqResp < handle
|
||||
|
||||
obj.H_apply = H_inv;
|
||||
|
||||
Target.signal = real((ifft( ( fft(real( Target.signal' )) .* H_inv ) )));
|
||||
H_inv = reshape(H_inv,size(Target.signal));
|
||||
|
||||
Target.signal = real((ifft( ( fft(real( Target.signal )) .* H_inv ) )));
|
||||
Target.signal = Target.signal';
|
||||
|
||||
end
|
||||
@@ -250,8 +255,18 @@ classdef ChannelFreqResp < handle
|
||||
% Havg_smooth = smooth(Havg,10);
|
||||
symaxis = (obj.faxis-(obj.f_ref/2))/1e9;
|
||||
Havg = fftshift(Havg);
|
||||
%Havg = smooth(Havg);
|
||||
plot(symaxis, 20*log10(abs(Havg)),'LineWidth',0.5);
|
||||
Havg = smooth(Havg);
|
||||
Havg = Havg./max(Havg);
|
||||
|
||||
if ~isempty(obj.fileName)
|
||||
dpname = obj.fileName;
|
||||
else
|
||||
dpname = 'Measured System response';
|
||||
end
|
||||
|
||||
plot(symaxis, 20*log10(abs(Havg)),'LineWidth',0.5,'DisplayName',dpname);
|
||||
|
||||
legend('Interpreter','latex')
|
||||
grid on;
|
||||
|
||||
|
||||
@@ -368,6 +383,8 @@ classdef ChannelFreqResp < handle
|
||||
end
|
||||
|
||||
fprintf('Frequency response information successfully loaded from %s\n', fullFileName);
|
||||
obj.fileName = options.fileName;
|
||||
obj.path = options.loadPath;
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user