%discurve.m

clear;
raw = '2017Sep06';

path =    sprintf('../%s/raw',raw);
matfile = sprintf('../%s/parsed/CPF%s_ENG.mat',raw,raw);
load(matfile);

numprof = size(STATE,1);

figure(1); hold on;

for i=1:1:numprof
    plot(DATETIMENUM(i,:),BATTV(i,:),'.');
end



grid on;
outstr = sprintf('CPF batt discharge curve %s',raw);
title(outstr);
ylabel('Volts');

axis([DATETIMENUM(1,1) max(max(DATETIMENUM)) min(min(BATTV)) max(max(BATTV))]);
%axis([DATETIMENUM(1,1) max(max(DATETIMENUM)) 27 32]);
datetick('keeplimits');