This paper deals with the analytical modeling and control of rectilinear snake robots. During recent times snake robots have created much interest among researchers. The rectilinear pattern gait is one of the four biological snake locomotion modes. Rectilinear snakes have been widely used in rescue operations especially in rough terrains especially in narrow spaces where human intervention is not easy. Computational analysis of rectilinear motion is done using MATLAB.