Electronic circuits in pure MATLAB - using SPICE models

Simulate electronic circuits in pure MATLAB - using SPICE syntax and non-linear device models.

您现在正在关注此提交

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.

引用格式

Duncan Barclay (2026). Electronic circuits in pure MATLAB - using SPICE models (https://ww2.mathworks.cn/matlabcentral/fileexchange/180353-electronic-circuits-in-pure-matlab-using-spice-models), MATLAB Central File Exchange. 检索时间: .

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0