File Exchange

image thumbnail

RLC circuit demo bundle

version 1.3.2 (731 KB) by Mischa Kim
Analyze the RLC series circuit using different modeling approaches and with hardware


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
Note: these are the example files that are used in a recorded Webinar on experimenting in teaching (available at This Webinar discusses some of the teaching challenges and presents approaches and techniques to efficiently create, perform and evaluate experiments.

Webinar resources:
* Interactive tutorials:
* Online courseware:
* Hardware catalogue:
* Cody Coursework:

Comments and Ratings (2)


Very good



Updated link to MATLAB courseware materials.

Verified demo compatibility for releases from R2014a up to R2017a.

Updated license

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

Fixed a typo.

Added an empty space in the Description text

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor