-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetNoSteadyState.m
24 lines (18 loc) · 1.05 KB
/
getNoSteadyState.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% [[file:mutual_ide.org::*Which simulations never reached a steady state?][Which simulations never reached a steady state?:1]]
function getNoSteadyState(sweepDir)
files = dir(fullfile(sweepDir, '*.mat'));
for file = 1:length(files)
curFile = matfile(fullfile(sweepDir, files(file).name));
parameters = curFile.parameters;
% get the values of tau12 and tau21
tau12 = parameters{find(strcmp('tau12', parameters)) + 1};
tau21 = parameters{find(strcmp('tau21', parameters)) + 1};
if curFile.iterations == curFile.maxIterations
disp(strcat("The simulation of tau12 = ", num2str(tau12, "%.2f"), " and tau21 = ", num2str(tau21, "%.2f"), " reached the maxIterations value of ", num2str(curFile.maxIterations)));
else
disp(strcat("The simulation of tau12 = ", num2str(tau12, "%.2f"), " and tau21 = ", num2str(tau21, "%.2f"), " ran for ", num2str(curFile.iterations), " iterations"))
end
clear curFile;
end
end
% Which simulations never reached a steady state?:1 ends here