Import SPICE Raw File

Import a SPICE raw file into MATLAB.
4K Downloads
Updated 9 Aug 2005

No License

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.

Cite As

Brett Bymaster (2024). Import SPICE Raw File (https://www.mathworks.com/matlabcentral/fileexchange/8237-import-spice-raw-file), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: rawspice6.m

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0