plot(cycle{1}.dt, cycle{1}.vrsVolts)
hold on
plot(cycle{2}.dt, cycle{2}.vrsVolts)
figure
plot(cycle{1}.thermTemp, cycle{1}.vrsVolts)
hold on
plot(cycle{2}.thermTemp, cycle{2}.vrsVolts)

%

x = [cycle{1}.thermTemp' cycle{2}.thermTemp'];
y = [cycle{1}.vrsVolts' cycle{2}.vrsVolts'];
fitCoef = polyfit(x, y, 3)
a2 = polyval(fitCoef, x);
figure
plot(x, y)
hold on
plot(x, a2)
res = a2 - y;
figure
plot(res)
minRes = min(res)
maxRes = max(res)

%

cycleNum = 1;
for i=1:2:length(stepIndexes)-1
    x = [cycle{i}.thermTemp' cycle{i+1}.thermTemp'];
    y = [cycle{i}.vrsVolts' cycle{i+1}.vrsVolts'];
    fitCoef(cycleNum,:) = polyfit(x, y, 3);
    cycleNum = cycleNum + 1;
end