We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0224ce2 commit 1839a1dCopy full SHA for 1839a1d
test/base/setGlobal.m
@@ -7,6 +7,11 @@ function setGlobal(globalName,globalValue)
7
% INPUTS:
8
% globalName: A string representing the name of the global variable
9
% globalValue: The value to set the global variable to
10
+%
11
+% NOTE:
12
+% this function has been adapted from
13
+% https://github.com/opencobra/cobratoolbox/blob/master/src/base/utilities/setGlobal.m
14
+% [e6b4efd]
15
16
eval([ globalName '_val = globalValue;']);
17
eval(['global ' globalName]);
0 commit comments