Reputation: 113
I am running BehaviorSpace in NetLogo using the NW Extension to run several networks experiments and I need to save the network matrices into files with different names.
Right now, I have the following:
to create-network
code to create network ...
nw:set-context-turtles links
nw:save-matrix "matrix.txt"
end
But this means that every time BehaviorSpace runs through "matrix.txt" is overwritten. Basically I want to output matrix1.txt to matrix100.txt if I run 100 simulations, for example.
Upvotes: 2
Views: 143
Reputation: 9620
You can create unique matrix names with word
and behaviorspace-run-number
. For example, let mname (word "matrix" behaviorspace-run-number ".txt")
.
Upvotes: 3