Flocking demo: comments added to properties file on how to handle individuals not being present at any given time step.

This commit is contained in:
Joseph Lizier 2024-11-04 12:21:22 +11:00
parent 5d4419d734
commit 912bdf94e1
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ properties.files = 'positions%s.txt';
% loadScript must point to a function .m file that accepts two arguments % 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) % (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. % 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: % Use the name of the .m file after an "@" character:
properties.loadScript = @loadseparatexy; properties.loadScript = @loadseparatexy;