Unformatted text preview: % OUTPUTS: (all scalars) % dy -- delta in rows (-1 is up, 0 no move, 1 is down) % dx -- delta in columns (-1 is left, 0 no move, 1 is right) % mark -- scent left by the ant, any integer between 0 and 100 % carry -- logical indicating if the ant will carry one unit of food or not % % Copyright 2005 The MathWorks, Inc. % dy = 0; dx = 0; mark = 0; carry = logical(0);...
View
Full Document
- Spring '09
- mon
- Space, ant colony
-
Click to edit the document details