MATLAB automatic control principle on the machine