created M file for multi-quad.