Skip to content

Commit 1839a1d

Browse files
committed
note to setGloabal function
1 parent 0224ce2 commit 1839a1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/base/setGlobal.m

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ function setGlobal(globalName,globalValue)
77
% INPUTS:
88
% globalName: A string representing the name of the global variable
99
% 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]
1015

1116
eval([ globalName '_val = globalValue;']);
1217
eval(['global ' globalName]);

0 commit comments

Comments
 (0)