-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimTurnOffBetaIB.m
More file actions
39 lines (31 loc) · 933 Bytes
/
simTurnOffBetaIB.m
File metadata and controls
39 lines (31 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
filepath='turnOffBeta-IB';
saveRast=true;
defaultParams; % call first to set parameters not set below
numCellsBase=20;
numColumns=1;
fourTimesRS=true; % Have four times more RS than every other population?
turnOffBeta=1;
inhibitoryPulse1Start=500;
inhibitoryPulse1Length=120;
%inhibitoryPulse1Length=75;
turnOffTarget='IB';
turnOffAmp=2;
numSims=10;
for sim=1:numSims
sim
networkSim;
fullVall(:,:,sim)=fullV;
fullSInputAll(:,:,sim)=fullSInput;
rastFig=figure(sim);
clf
hold on
rastergram;
drawnow;
fullFilepath=strcat(folder,'/',filepath);
if saveOutput
saveRastergram(folder,filepath,rastFig,sim)
end
end
if saveOutput
save(strcat(fullFilepath,'.mat'),'fullVall','fullSInputAll','displayInputBeta','displayInputGamma','displayInputGamma2','inhibitoryPulse1Start','inhibitoryPulse1Length','turnOffTarget','turnOffAmp');
end