This toolbox contains a main GUI that allows you to design a circuit and simulate it, very similar to Pspice. You can use nonlinear devices such as diodes and bipolar transistors, or why not define your own component model.
If you feel more comfortable with netlist, there are routines for calculating the resulting node voltages and currents from netlists. Netlists and schematics are entered in matrix format, where each row corresponds to a schematic item or a component.
There is a model library tool that enables you (and the simulator) to keep track on your models. All models are assigned a unique pointer/ID which is used for the schematic and netlist matrices. The model library does not contain information about inherent "models" such as resistors, capacitors or ideal op-amps.
The simulator make use of the MNA formulation of a circuit. See  Eric Cheever, http://www.swarthmore.edu/NatSci/echeeve1/Ref/mna
The tar.gz version is available on my homepage:
This version is very beta since it took about one and a half month to develop. So don't expect it to be perfect. :-)
(See the accompanying readme-file about important notes and planned updates.)
Rasmus Anthin (2023). EC-SIM 1.1 (https://www.mathworks.com/matlabcentral/fileexchange/3956-ec-sim-1-1), 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!
Fixed a bug concerning node-numbering in the NET2MAT routine. The error occured when using VALPLOT.I've altered EC-SIM so that the sweeping of a particular component won't affect its value in the schematic. More info in the readme file.