Code covered by the BSD License  

Highlights from
Automata Engineer 2010 NITK- Documented version

image thumbnail

Automata Engineer 2010 NITK- Documented version

by

 

The documented version of the code which solves the problem statement of Automata Engineer 2010 NITK

botloc( prop )
function [ bot_loc ] = botloc( prop )
% Returns the location of the bot
%   Input: the area matrix of the arena obtained using regionprops.Area
%   Output: Location of the Bot(2-31)
%   the calculation is done by comparing the area
for i=2:31
    if(prop(i).Area<4000)
        bot_loc=i;
        break;
    end
end

end

Contact us