% Why is BB latency so long?

%% file id
fid = 'sim-test-02';

% Load simoc file
sim = loadsimoc([fid '.simoc']);

% Load digital file
d = loaddig([fid '.dig']);
st.time = d.time(d.state > 0);
st.channel = 1*ones(size(st.time));

% Load spk file
s = loadspk([fid '.spk']);


%%
close all
figure

subplot(211)
plot(sim.time,sim.output(3,:))
