close all; clear all; clc;
v1 = 24; % max voltage input of hydrophone
I = 200*10^-3; % max current of hydrophone
l = 0.59058*10^-6*100; % inductance of cable for 100m
c = 108.273*10^-12*100; %capacitance of cable for 100m
f = linspace(374000.7,458000.7); %frequency range of hydrophone
xc = (2*pi*f*c).^-1; %capacitive reactance
xl = (2*pi*f*l); % inductive reactance
x = xc; % reactance
z = sqrt(67^2 + x.^2); % total impedance sqrt(R^2 + X^2)
v2 = I.*z; % output voltage
g = v2./v1; % Gain
G = 20*log10(g);
plot(f,G)
xlabel('Frequency (Hz)')
ylabel('Gain (dB)')
title('Gain vs Frequency for 100 m of Cable')
figure(2)
plot(f,z)
xlabel('Frequency (Hz)')
ylabel('Impedance (Ohms)')
title('Impedance vs Frequency for 100 m of Cable')