MPI Simulations and stuff

This commit is contained in:
Silas Oettinghaus
2024-08-14 09:36:51 +02:00
parent 1eeb970d8f
commit 34f9149346
61 changed files with 4295 additions and 429 deletions

View File

@@ -3,6 +3,8 @@ classdef Filter < handle
% Detailed explanation goes here
properties
active
H
filterType
f_cutoff
@@ -22,6 +24,7 @@ classdef Filter < handle
%FILTER Construct an instance of this class
% Detailed explanation goes here
arguments
options.active logical = true;
options.filterType filtertypes = filtertypes.bessel_inp ;
options.f_cutoff = 0;
options.fs = 0;
@@ -47,7 +50,10 @@ classdef Filter < handle
end
function signal_out = process(obj,signal_in)
if ~obj.active
signal_out = signal_in;
return
end
if isa(signal_in,'Signal')
% actual processing of the signal
@@ -284,10 +290,12 @@ classdef Filter < handle
title('Magnitude')
hold on
p = plot(frex,filt,'LineWidth',1,'LineStyle','-','DisplayName',[cur_module_name,': ',filter_desc, '; 3/6/10 dB: ', num2str(threedB),'/ ',num2str(sixdB),'/ ',num2str(ninedB)]);
if 0
xline([-threedB,threedB],'LineStyle','-','LineWidth',1,'HandleVisibility','off','Color',p.Color);
xline([-sixdB,sixdB],'LineStyle','-','LineWidth',1,'HandleVisibility','off','Color',p.Color);
xline([-ninedB,ninedB],'LineStyle','-','LineWidth',1,'HandleVisibility','off','Color',p.Color);
end
xline(fcut_,'LineStyle',':','LineWidth',1,'HandleVisibility','off','Color',p.Color);
yline([-3, -6, -9],'LineStyle',':','LineWidth',1,'HandleVisibility','off');