function [ pos ] = index2pos( index )
% Hassan Nahas
%This function translates the relative position x number to a 2D position
%on a ring.

    pos = 3*[sin((index-1)*2*pi/16),cos((index-1)*2*pi/16)];
    pos = round(pos);
end

