Main Content

RC Circuit in Simulink and Simscape

This example compares Simscape™ and Simulink® models of an RC circuit. The Simscape model uses physical connections, which permit bidirectional energy flows between components. The Simulink model uses input/output signal connections, which define data flows from one block to another.

With physical connections, you can add components to the RC circuit by using copy and paste. Comparatively, input/output connections require you to rederive and reimplement the circuit equations after adding components.

The circuit is driven by a voltage square wave. MATLAB® variables define resistance and capacitance values.

Model

Simulation Results from Scopes

Simulation Results from Simscape Logging

See Also

Topics