Abstract:MATLAB is simplicity of programming,high efficiency of calculation,powerful function of drawing.The introduction of MATLAB simulation in "electrician basis" course teaching can make up the deficiency of traditional teaching.This paper studies the MATLAB function programming and virtual experiment two kinds of simulation methods,and discusses the application of MATLAB simulation and virtual experiment of two kinds of simulation methods through the example of sinusoidal steady state circuit.