Filter design using fractral geometry (Sierpinski resonator with a microstrip feed)
% Clear and initialize close all; clc; % Add OpenEMS and CSXCAD paths addpath('C:\openEMS\matlab'); addpath('C:\openEMS\CSXCAD\matlab'); % Constants c0 = 299792458; % Speed of light in vacuum [m/s] unit = 1e-3; % millimeter %% Adjustable Parameters iter = 2; % Sierpinski depth sideLength = 30; % Triangle side [mm] substrate_thickness = 1.6; % mm eps_r = 4.4; % Dielectric constant of FR4 f_start = 1e9; % Simulation start frequency f_stop = 10e9; % Simulation stop frequency res = 30; % Mesh resolution factor %% Calculate microstrip width for 50 Ohm Z0 = 50; h = substrate_thickness; er = eps_r; if Z0 <= 60 W = (8 * h) *...