In the traditional iterative learning control (ILC) method, the operational time interval is conventionally fixed to facilitate a seamless learning process along the iteration axis. However, this condition may frequently be contravened in real-time applications owing to unknown uncertainties and unpredictable factors. In essence, replicating a control system at a consistent time interval proves challenging in practical scenarios. This paper proposes an adaptive iterative learning control (AILC) method for the multi-input–multi-output (MIMO) nonlinear system with nonuniform trial lengths and an invertible control gain matrix. Compared to the existing AILC research that features nonuniform trial lengths, the control gain matrix of the system in this paper is assumed to be invertible. Hence, the general requirement in the conventional AILC method that the control gain matrix of the system is positive-definite (or negative-definite) or even known is relaxed. Moreover, the tracking reference allows it to be iteration-varying. Finally, to prove the convergence of the system, the composite energy function is introduced and to verify the validity of the AILC method, a robot movement imitation with an uncalibrated camera system is used. The simulation results show that the actual output can track the desired reference trajectory well, and the tracking error converges to zero after 30 iterations.