Electronic – Import Parametric Sweep data from LTSPice into Matlab

dataltspiceMATLABsimulation

In LTSpice, I am running transient simulations with input 2 parameters (Amplitude and Frequency) being swept. The initial graph of all the data looks like this:

Initial LTSPice data
Obviously it is hard to tell what is going on. I would like to import the large simulation data into Matlab for analysis, where I can separate the data into individual waveforms – each corresponding to an amplitude and frequency that was swept.

I found a file online that implements the LTspice2Matlab command that imports a RAW file, however it cannot isolate each waveform as I expected. Are RAW files stored in a manner that each data point is paired with its amplitude and frequency? If so, how can I properly import this into Matlab?

Any ideas are welcome!

Best Answer

I believe you can convert the raw format to ASCII with ltsputil.exe. Look here for details.