image thumbnail

Import SPICE Raw File

version (1.25 KB) by Brett Bymaster
Import a SPICE raw file into MATLAB.


Updated 09 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 (2022). Import SPICE Raw File (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: rawspice6.m

Community Treasure Hunt

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

Start Hunting!