Simulate a Faraday Cage using Constrained Quadratic Programming

This script demonstrates how to simulate electromagnetic shielding of a Faraday cage.

You are now following this Submission

This is a live script tutorial on how to set up the necessary equations for electromagnetic interaction of point charges. The tutorial can be used as a template for modelling other systems of interacting point objects.

Cite As

Adam Hug (2026). Simulate a Faraday Cage using Constrained Quadratic Programming (https://ch.mathworks.com/matlabcentral/fileexchange/55462-simulate-a-faraday-cage-using-constrained-quadratic-programming), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Electrostatic Induction Explorer

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

I changed variable names and hard coded values such that they are different from those published in the paper. The methods/ideas I implemented were touched on in the paper but all the code and implementation details are my own.
Added thumbnail