Electric circuit based on dependent source with simscape

Create an electric circuit with a dependent source in Simscape (MATLAB/Simulink)
42 Downloads
Updated 2 May 2025

View License

Build a circuit where the output voltage source is controlled by the voltage across a resistor.Steps:
  1. Open Simulink, create a new model, and add a Simscape > Simscape > Solver Configuration block and an Electrical Reference.
  2. Add a Voltage Sensor and a Controlled Voltage Source:
  • Found under: Simscape > Foundation Library > Electrical > Electrical Sensors and Electrical Sources
  1. Connect a basic resistor and voltage source:
  • From: Electrical > Electrical Elements (Resistor)
  • From: Electrical Sources (Ideal Voltage Source)
  1. Use a PS Gain block to scale the measured voltage (e.g., gain = 2).
  2. Connect the voltage measurement to the input of the Controlled Voltage Source via the PS Gain.
  3. Use Simulink-PS Converter and PS-Simulink Converter blocks if needed.
  4. Close the loop and run the simulation.

Cite As

Abdelrahman Farghly (2025). Electric circuit based on dependent source with simscape (https://in.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 Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0