 |
|
 |
Matlab Software by Brett Bymaster
Linear circuit simulator using network analysis, useful for analog and RF, including noisy 2-ports
MATLAB Release: R14
This simulator uses network analysis to simulate linear 2 port circuits. The primary mode of simulation is cascaded ABCD matrices. Parallel combinations are also supported. Supports conversions to and from the following formats: S-Parameters, Y-Parameters, Z-Parameters, and ABCD-Parameters.
Noisy two-ports are supported using correlation matrices. This allows for uncorrelated, partially correlated or completely correlated noise and current sources to be included in the network analysis. For example, a noisy active amplifier can be simulated in a linear cascade chain to find the overall combined noise from the amplifier and other passive components.
An example of simplex circuit optimization is included utilizing network matrices.
Download LinearSimulator.zip
Import a SPICE raw file into MATLAB.
MATLAB Release: R14SP1
Description: There are two functions enclosed that can quickly read the raw file output of SPICE. This can be used to dump the entire contents of a SPICE simulation into MATLAB for further processing. This version works in a similar fashion to a prior post (rawspice6.m), but reads files an order of magnitude faster. This function can read files of > 30Megs in less than 30 seconds.
The first function imports the data into a structure where each node is indexed by its node name (ReadRawSpice). The second function imports the data into a cell where each node name is indexed by a number (ReadRawSpice2). Otherwise, the two functions are identical. Both are in the same .m file, so the user should separate them out after download.
Download ReadRawSpice.m
|
|
|