You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% [Data, Labels] = ReadSpice(filename)
%
% Data is an MxN matrix containing the values of the M variables
% at each of the N datapoints.
%
% Labels is a M-vector with the Mth label corresponding to the
% Mth row in Data
%
% This script has been tested on raw (-r Out.raw) data from
% ngspice-rework17.
%
% Usage example:
% [data, labels] = ReadNGSpice('out.raw');
% labels (to view how the data is labeled)
% plot(data(1,:), data(6,:));
% title('Oscillator Output (V)');
Cite As
Madison McGaffin (2026). Read ngspice (https://www.mathworks.com/matlabcentral/fileexchange/23095-read-ngspice), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Read ngspice MOD, Run ngspice simulation and import rawfile
General Information
- Version 1.0.0.0 (928 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
