RLC circuit demo bundle

Analyze the RLC series circuit using different modeling approaches and with hardware
2.7K Downloads
Updated 16 Apr 2018

View License

This demo bundle demonstrates how to model and analyze a dynamical system – the RLC circuit – in MATLAB, Simulink, and Simscape and how to seamlessly move between these modeling environments. The corresponding hardware experiment is analyzed with a low-cost data acquisition hardware platform.

Example files:
RLC_symbolic.m: model and analyze circuit using symbolic math
RLC_nonlinear.m: model and analyze circuit using numeric math
RLC_nonlinear.pdf: documentation generated with MATLAB’s publish feature
RLC_simulink.slx: model and analyze circuit using graphical modeling
RLC_simscape.slx: model and analyze circuit using physical modeling
RLC_AnalogDiscovery.m: analyze hardware circuit using the DAQ toolbox
RLC_AnalogDiscovery.pdf: documentation generated with MATLAB’s publish feature

Support material:
data_bode.mat: hardware measurement data file
data_step.mat: hardware measurement data file
Comp_Bode.fig: plot comparing theory and hardware experiment
Comp_Step.fig: plot comparing theory and hardware experiment
RLC_model.PNG: Simscape model screenshot
RLC_schematic.PNG: schematic for hardware experiment
license.txt
Note: these are the example files that are used in a recorded Webinar on experimenting in teaching (available at http://www.mathworks.com/videos/learn-effective-efficient-experimenting-with-matlab-98172.html). This Webinar discusses some of the teaching challenges and presents approaches and techniques to efficiently create, perform and evaluate experiments.

Webinar resources:
* Interactive tutorials: http://www.mathworks.com/academia/student_center/tutorials/?s_tid=acport_tut_sp_til
* Online courseware: https://www.mathworks.com/academia/courseware.html?s_tid=acport_cw_ep_til
* Hardware catalogue: http://www.mathworks.com/hardware-support/index.html?suggestion=
* Cody Coursework: https://www.mathworks.com/products/matlab-grader.html

Cite As

Mischa Kim (2024). RLC circuit demo bundle (https://www.mathworks.com/matlabcentral/fileexchange/47538-rlc-circuit-demo-bundle), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.2

Verified demo compatibility for releases from R2014a up to R2017a.
Updated link to MATLAB courseware materials.

1.3.0.1

Updated license

1.3.0.0

Added link to recorded Webinar and converted to new MATLAB Toolbox file format .

1.2.0.0

Fixed a typo.

1.1.0.0

Added an empty space in the Description text