Electric circuit based on dependent source with simscape
Version 1.0.0 (40.3 KB) by
Abdelrahman Farghly
Create an electric circuit with a dependent source in Simscape (MATLAB/Simulink)
Build a circuit where the output voltage source is controlled by the voltage across a resistor.Steps:
- Open Simulink, create a new model, and add a Simscape > Simscape > Solver Configuration block and an Electrical Reference.
- Add a Voltage Sensor and a Controlled Voltage Source:
- Found under: Simscape > Foundation Library > Electrical > Electrical Sensors and Electrical Sources
- Connect a basic resistor and voltage source:
- From: Electrical > Electrical Elements (Resistor)
- From: Electrical Sources (Ideal Voltage Source)
- Use a PS Gain block to scale the measured voltage (e.g., gain = 2).
- Connect the voltage measurement to the input of the Controlled Voltage Source via the PS Gain.
- Use Simulink-PS Converter and PS-Simulink Converter blocks if needed.
- Close the loop and run the simulation.
Cite As
Abdelrahman Farghly (2026). Electric circuit based on dependent source with simscape (https://uk.mathworks.com/matlabcentral/fileexchange/180967-electric-circuit-based-on-dependent-source-with-simscape), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |