Matlab based gait planning and simulating of a robot inspired by gecko locomotion