A matlab simulator for a quadrotor