
%% OU-Rep
clear all;

subplot(2,1,1); hold off;
subplot(2,1,2); hold off;

load('2013-04-03_dojo7_03_E-3_OU-Rep-50ms-1.mat')

c = jet(10);

for i = 1:10
    subplot(2,1,1);
    x = eval(['Trace_3_1_' num2str(i) '_1']);
    plot(x(:,1),x(:,2),'Color',c(i,:));
    hold on;
    
    subplot(2,1,2)
    if i == 10
        load(['dojo7_cell03_OU-Rep-50ms_VC_01_0' num2str(i) '.mat']);
    else
        load(['dojo7_cell03_OU-Rep-50ms_VC_01_00' num2str(i) '.mat']);
    end
    plot(x(:,1),dat.raw.Imem,'Color',c(i,:));
    hold on;
end

%% PBRS

subplot(2,1,1); hold off;
subplot(2,1,2); hold off;

load('2013-04-03_dojo7b_06_E-6_PBRS-10ms-1.mat')

c = jet(10);

for i = 1:10
    subplot(2,1,1);
    x = eval(['Trace_1_1_' num2str(i) '_1']);
    plot(x(:,1),x(:,2),'Color',c(i,:));
    hold on;
    
    subplot(2,1,2)
    if i == 10
        load(['dojo7_cell06_PBRS-10ms_VC_01_0' num2str(i) '.mat']);
    else
        load(['dojo7_cell06_PBRS-10ms_VC_01_00' num2str(i) '.mat']);
    end
    plot(x(:,1),dat.raw.Imem,'Color',c(i,:));
    hold on;
end

%% PowSteps (1sec, 100 sweeps)

clear all;

subplot(2,1,1); hold off;
subplot(2,1,2); hold off;

load('2013-04-03_dojo7_01_E-1_PowSteps-1s-4.mat')

c = jet(100);

for i = 1:100
    subplot(2,1,1);
    x = eval(['Trace_1_4_' num2str(i) '_1']);
    plot(x(:,1),x(:,2),'Color',c(i,:));
    hold on;
    
    subplot(2,1,2)
    if i == 100
        load(['dojo7_cell01_PowSteps-1s_VC_04_' num2str(i) '.mat']);
    elseif i >=10
        load(['dojo7_cell01_PowSteps-1s_VC_04_0' num2str(i) '.mat']);
    else
        load(['dojo7_cell01_PowSteps-1s_VC_04_00' num2str(i) '.mat']);
    end
    plot(x(:,1),dat.raw.Imem,'Color',c(i,:));
    hold on
end

%% PowSteps (manual entry)

clear all;

subplot(2,1,1); hold off;
subplot(2,1,2); hold off;

load('2013-04-03_dojo7_06_E-6_PowSteps-1s-3.mat')

c = jet(100);

for i = 1:78
    subplot(2,1,1);
    x = eval(['Trace_6_3_' num2str(i) '_1']);
    plot(x(:,1),x(:,2),'Color',c(i,:));
    hold on;
    
    subplot(2,1,2)
    if i >=10
        load(['dojo7_cell06_PowSteps-1s_VC_03_0' num2str(i) '.mat']);
    else
        load(['dojo7_cell06_PowSteps-1s_VC_03_00' num2str(i) '.mat']);
    end
    plot(x(:,1),dat.raw.Imem,'Color',c(i,:));
    hold on
end
