From 912bdf94e18da5ae01a52bbbdcffb2844c16f1f0 Mon Sep 17 00:00:00 2001 From: Joseph Lizier Date: Mon, 4 Nov 2024 12:21:22 +1100 Subject: [PATCH] Flocking demo: comments added to properties file on how to handle individuals not being present at any given time step. --- demos/octave/FlockingAnalysis/NetLogoExample/loadProperties.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/octave/FlockingAnalysis/NetLogoExample/loadProperties.m b/demos/octave/FlockingAnalysis/NetLogoExample/loadProperties.m index 284fe3c..3476055 100644 --- a/demos/octave/FlockingAnalysis/NetLogoExample/loadProperties.m +++ b/demos/octave/FlockingAnalysis/NetLogoExample/loadProperties.m @@ -43,6 +43,8 @@ properties.files = 'positions%s.txt'; % loadScript must point to a function .m file that accepts two arguments % (the name of a file, and properties object) and returns [x,y,z] (z optional, only when 3D) % data where each is an array, e.g. x(time, fishIndex) indexed first by time and second by fish index. +% Where an individual is not present at any given time step, set each x,y,z position +% to nan for these time steps. The subsequent scripts will then ignore these samples. % Use the name of the .m file after an "@" character: properties.loadScript = @loadseparatexy;