data = load('term_reflectedv_data.txt');

data(:,2) = data(:,2)/1.66; % height of original pulse



plot(data(:,1),data(:,2),'o','markersize',10);

grid on;

xlabel('Termination resistance');

ylabel('Normalized amplitude of reflected pulse');

title('Reflections from cable as a function of termination resistance');



Z0 = 50;

Z = linspace(min(data(:,1)),max(data(:,1)));

RV = (Z-Z0)./(Z+Z0);

hold on;

plot(Z,RV,'r','LineWidth',2);