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.
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
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 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.
* 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
Mischa Kim (2022). RLC circuit demo bundle (https://www.mathworks.com/matlabcentral/fileexchange/47538-rlc-circuit-demo-bundle), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!