function [m]=my_analyzetoynetwork(networksize) time_conversion=20000; connectionsfound=[]; for stimulatednode=1:networksize load(sprintf('toynetwork_pin%d.mat',stimulatednode)) disp(sprintf(' Smearing neuron %d . . .', stimulatednode)) my_smearspikes(spikes,stimulatednode); disp(sprintf(' Analyzing simulation of neuron %d stimulation . . .', stimulatednode)) maxdelay=round(.05*time_conversion); connectionvector=my_analyzenetwork(spikes,stimulatednode,maxdelay); connectionsfound=[connectionsfound; (real(connectionvector)/length(spikes)+imag(connectionvector))]; end [m]=connectionsfound;