MATLAB is applied to the dynamic simulation of the environmental control system (ECS) of military aircraft. Modeling method of cooling and controlling parts is introduced respectively based on MATLAB. A toolbox for the simulation of the environment control system is then developed. An example of the simulation is given to compare with experimented result. It is found that, with the aforementioned toolbox, the environment control system of aircraft can be simulated quite efficiently at an excellent precision.