You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This package will simulate a SPICE like netlist using pure MATLAB for operating point, dc sweeps, ac and transient analysis.
I am stating the limitations clearly
- THERE IS NO SCHEMATIC ENTRY FRONT-END
- THIS IT NOT ANYWHERE NEAR FULL SPICE
- THE NETLIST ONLY SUPPORTS A SUBSET OF SPICE SYNTAX
- DC OPERATING POINT ANALYSIS DOES HAVE GMIN OR SOURCE STEPPING
- THE ONLY DOT COMMAND SUPPORTED IS .MODEL
- BJT, DIODE AND MOSFET MODELS HAVE NO TEMPERATURE MODELLING
- BJT, DIODE AND MOSFET MODELS HAVE NO CAPACITANCES
If you don't known what any of those statements mean, or whether your circuit will simulate then this is NOT the package for you. Go and get one of the many other circuit simultor packages such as WR Spice, ngspice or qspice etc.
That said, I believe the Newton-Raphson solver and tranisent angine are robust for worthwhile use - they are derived from the orignal SPICE3F5 code.
This has been written for my enjoyment - ever since I did my doctorate many years ago I've wanted to do this.
The image is a comparison of this simulator and QSPICE on a netlist with some MOSFETs driving a piezo-electric transducer.
Cite As
Duncan Barclay (2026). Electronic circuits in pure MATLAB - using SPICE models (https://www.mathworks.com/matlabcentral/fileexchange/180353-electronic-circuits-in-pure-matlab-using-spice-models), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (855 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |