Files

copied

Scanning the repository...

Last update 2 weeks 4 days by Nevan Mukherjee
Filesaws1_sparams
..
a1_first.s2p
aws1.m
aws1_testing.asv
aws1_testing.m
aws1.m
filepath = '/home/vizhins/Documents/Preselector-Bank-SAW-Filters/aws1_sparams/a1_first.s2p'; sParams = sparameters(filepath); frequency = sParams.Frequencies; S11 = squeeze(sParams.Parameters(:, 1, 1)); % Corrected line S11_mag = 20*log10(abs(S11)); S11_phase = angle(S11) * (180/pi); figure; subplot(2, 1, 1); plot(frequency, S11_mag); title('S11 Magnitude Response'); xlabel('Frequency (Hz)'); ylabel('Magnitude (dB)'); grid on; subplot(2, 1, 2); plot(frequency, S11_phase); title('S11 Phase Response'); xlabel('Frequency (Hz)'); ylabel('Phase (degrees)'); grid on; set(gca, 'XScale', 'log'); % applies only to the last subplot
Report a bug