excel - How to print a turtle variable equivalent to item 0 in a list in Netlogo? -
i trying export turtle variable value <= item 0
of patch list. these values interested in recording, having trouble getting code right that.
i've tried below:
file-print turtles [turtlevariable <= item 0 patchlist]
i know that's not right getting number of turtles, , not turtle variable value. run model 1000 times , unsure how create code file manageable manipulate in excel.
i'm pretty sure there simple answer, can't figure out! appreciated.
you have multiple questions here. need post each question separately. take on following: how can list of values turtlevariable
, values < item 0 patchlist
.
globals [patchlist] turtles-own [tvar] patches-own [pvar] test ca ask patches [set pvar random-float 1.0] set patchlist [pvar] of patches let _p00 item 0 patchlist ;;compute once crt 100 ask turtles [set tvar random-float 1.0] let _tset (turtles [tvar < _p00]) let _tvals [tvar] of _tset print _tvals end
you can file-print
can print
, need decide how want format list. separate question. if want save .csv
, separate question. (but find multiple questions on site addressing that.) if want create 1 output file multiple replicates, separate question. (but see questions on site behaviorspace.) hth.
Comments
Post a Comment