-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimTurnOffBetaIBwithTempInput.m
More file actions
57 lines (46 loc) · 1.42 KB
/
simTurnOffBetaIBwithTempInput.m
File metadata and controls
57 lines (46 loc) · 1.42 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
filepath='turnOffBeta-IB-tempInput';
defaultParams; % call first to set parameters not set below
saveOutput=true;
numCellsBase=20;
numColumns=1;
fourTimesRS=true; % Have four times more RS than every other population?
gammaInput=0;
gammaFreq=40;
gammaJitter=0.2;
gammaInput2=1;
startGamma2=400;
endGamma2=800;
turnOffBeta=1;
inhibitoryPulse1Start=500;
inhibitoryPulse1Length=120;
turnOffTarget='IB';
turnOffAmp=1;
numSims=10;
clear('fullVall');
clear('fullSInputAll');
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)
%saveas(rastFig,strcat(fullFilepath,'-rastergram-',int2str(sim)),'fig');
%saveas(rastFig,strcat(fullFilepath,'-rastergram-',int2str(sim)),'png');
end
end
if saveOutput
save(strcat(fullFilepath,'.mat'),'fullVall','fullSInputAll','displayInputBeta','displayInputGamma','displayInputGamma2','inhibitoryPulse1Start','inhibitoryPulse1Length','turnOffTarget','turnOffAmp');
end
% fullFilepath=strcat(folder,'/',filepath);
% if saveRast
% saveas(rastFig,fullFilepath,'fig');
% saveas(rastFig,fullFilepath,'png');
% % save(strcat(fullFilepath,'.mat'),'relativeMeanFreqs','relativeDevFreqs')
% end