Electric Circuit Analysis in MATLAB and Simulink