close all
clear all
fn = "X:\\902106_Niobicon_AUV_Docking\\Deployments\\Summer2022\\2022-07-14T22-38-31_data_only.csv";
%fn = "X:\\902106_Niobicon_AUV_Docking\\Deployments\\Summer2022\\NoName01.txt";

x=csvread(fn);
i=x(:,2);
v=x(:,3);
r=v./i;

numsamples=rows(i);

sample=(1:(numsamples))';


figure('Position',[1000    600   1500     900]);
subplot(2,1,1);
grid on;
plot(sample,i);
axis([0,35000,7.5,8]);
xlabel('sample');    ylabel('I');
title('I');
legend('I');

subplot(2,1,2);
grid on;
plot(sample,v);
axis([0,35000,23.8,24.6]);
xlabel('sample');    ylabel('V');
title('V');
legend('V');

figure('Position',[1000    600   1500     900]);
subplot(2,1,1);
grid on;
plot(sample,i);
axis([6400,6600,-0.1,8]);
xlabel('sample');    ylabel('I');
title('I');
legend('I');

subplot(2,1,2);
grid on;
plot(sample,v);
axis([6400,6600,23.8,24.6]);
xlabel('sample');    ylabel('V');
title('V');
legend('V');

figure('Position',[1000    600   1500     900]);
%subplot(2,1,1);
grid on;
plot(sample,r);
axis([6400,6600,-10000,100]);
xlabel('sample');    ylabel('R');
title('R');
legend('R');
