% Jon Newman
pic = loadpic('2012_10_21_Herb-I5386_one-min-clamp_5hz_crappy-mod_04.pic');
% spk = loadspk('./non-rigorous-testing/2012_10_19_Herb-I5386_one-min-clamp_10.spk');
% ss = SqueakySpk('2012_10_19_Herb-I5386_one-min-clamp_10',spk.meta.fs_Hz,1,spk)


figure
tb = [0 2000];
b = pic.time > tb(1) & pic.time < tb(2);

subplot(311)
plot(pic.time(b),pic.targ(b))
hold on
plot(pic.time(b),pic.filt(b),'r')

subplot(312)
plot(pic.time(b),pic.erro(b))
hold on
plot(pic.time(b),pic.erin(b),'r')

subplot(313)
plot(pic.time(b),pic.out1(b))
hold on
plot(pic.time(b),pic.out2(b),'r')


%%
pic = loadpic('./5-hz-oscillation/2012_10_21_Herb-I5386_one-min-clamp_5hz_with-pre-pulse_no-ramp_Imax0.0A_01.pic');
figure
tb = [0 2000];
b = pic.time > tb(1) & pic.time < tb(2);

subplot(311)
plot(pic.time(b),pic.targ(b))
hold on
plot(pic.time(b),pic.filt(b),'r')

subplot(312)
plot(pic.time(b),pic.erro(b))
hold on
plot(pic.time(b),pic.erin(b),'r')

subplot(313)
plot(pic.time(b),pic.out1(b))
hold on
plot(pic.time(b),pic.out2(b),'r')