Merge branch 'main' of cau-git.rz.uni-kiel.de:nt/mitarbeiter/silas/imdd_simulation
This commit is contained in:
@@ -9,7 +9,9 @@ function beautifyBERplot()
|
||||
for i = 1:length(lines)
|
||||
lines(i).LineWidth = 1.3; % Thicker line width
|
||||
%lines(i).LineStyle = '-'; % Solid lines for simplicity
|
||||
lines(i).Marker = markers{mod(i-1, num_markers) + 1}; % Assign markers cyclically
|
||||
if string(lines(i).Marker) == "none"
|
||||
lines(i).Marker = markers{mod(i-1, num_markers) + 1}; % Assign markers cyclically
|
||||
end
|
||||
lines(i).MarkerSize = 4; % Marker size
|
||||
lines(i).MarkerFaceColor = 'auto'; % Use line color for marker face
|
||||
end
|
||||
|
||||
22
Functions/showTransferFunction.m
Normal file
22
Functions/showTransferFunction.m
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
function showTransferFunction(coeffs,options)
|
||||
|
||||
arguments
|
||||
coeffs
|
||||
options.fignum = 765
|
||||
options.DisplayName = ''
|
||||
options.color = [1 1 0.1]
|
||||
end
|
||||
% Define the filter taps
|
||||
|
||||
[H, w] = freqz(coeffs, 1, 1024, 1);
|
||||
|
||||
figure(options.fignum);
|
||||
hold on
|
||||
plot(w, 10*log10(abs(H)), 'LineWidth', 2,'DisplayName',options.DisplayName,'Color',options.color); %todo
|
||||
xlabel('Normalized Frequency');
|
||||
ylabel('Amplitude in dB');
|
||||
grid on;
|
||||
ylim([-20,10])
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user