S-Parameter Conversion MATLAB
This MATLAB code requires three input parameters: d (period constant in metamaterial thickness direction), f (frequency range), and S (scattering parameters obtained from CST or HFSS simulations). The implementation requires S-parameter data to be stored in an Excel file named "asd" placed in the MATLAB path. The Excel file must contain frequency values in the first column, real and imaginary parts of S11 parameters in the second and third columns, and real and imaginary parts of S21 parameters in the fourth and fifth columns respectively.