I have five turtles and two local variables with numeric values, call them x and y. The variable values are manipulated in the program and change. For internal checks I need to output the variable values at three points in the program. So I would like to print out who, x, and y with these three labels vertically sorted by who in ascending order. In other words, I want to output a table with three columns and five rows and who, x , and y labels for the columns. What is the best way to do this?
Thanks, RB
Assume five turtles and they are randomly assigned a value for a variable x. If you use the command:
print [x] of turtles
The five values are printed out horizontally in the command center. However, relative to their turtle id (who), the order appears to be random. How can I print the values in their ascending who order? In other words, value of x for turtle 0 first, value of x for turtle 1 second, and so on.
RB--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/11334b0d-c031-435f-8055-6d05be0ee5a6n%40googlegroups.com.
I have five turtles and two local variables with numeric values, call them x and y. The variable values are manipulated in the program and change. For internal checks I need to output the variable values at three points in the program. So I would like to print out who, x, and y with these three labels vertically sorted by who in ascending order. In other words, I want to output a table with three columns and five rows and who, x , and y labels for the columns. What is the best way to do this?
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/4FACC3D5-E536-44DC-A702-6626353D975F%40earthlink.net.