The task of the final thesis was to model complex resistor-capacitor circuits in Simulink and to analyze the transient phenomena of capacitor charging that occur when the electrical circuit is connected to a DC source, as well as the stationary states when the capacitors are charged. The introductory chapter explains the task of the final thesis and its goals and the methods used to solve the task. The second chapter provides a definition of MATLAB and its possible applications. Simulink, a MATLAB software package used to model and analyze electrical circuits, is defined. Instructions for entering data and their description are provided for the Simulink block library Simscape and its components used in modeling. The third chapter analyzes each example separately. For each electrical diagram, the values and arrangement of elements and a diagram image are given. The steps describe in detail the modeling of diagrams in Simulink and the analysis of capacitor charging and stationary values of current and voltage when the capacitors are charged.