Reputation: 45
I am creating own variables for a breed in Netlogo 5.10. However, I dont know if it is possible to define a vector or a matrix for each agent. For the moment i am creating as n variables for the vector size.
Thanks :D
Upvotes: 2
Views: 133
Reputation: 14972
There are other ways to do this, but the canonical way to represent collections of data in NetLogo is lists. A numerical vector would be a simple list of numbers; a matrix could be a list of lists.
Look at the Lists section in the NetLogo dictionary to get an overview of the wonderful things you can do with lists.
Upvotes: 3