LT Spice Automation and automatic Plot data extraction

I am trying to automate LTspice from Matlab. I am running Lt spice netlist which is creating the .raw file. But I am unable to automatically extract the polt data after that. Any solution on how to extract the netlist output with Matlab or any other way except manually clicking export as .text?

• You could set LTspice to save .raw files as ASCII (-ascii, command line switch), but, as the manual warns, that can be extremely slow, particularly for large simulations. I have never tried this myself. The .raw files are a mixed binary form, and there's a small utility, ltsputil (IIRC, in the Yahoo LTspice Groups), that processes .raw files for various reasons. Maybe this could be used in a small script? – a concerned citizen Jan 15 '19 at 9:17

You can use a script to read the data of the .raw files. For Matlab, Ive used ltspice2matlab. Alternatively, for users of Python, one alternative is PySpicer.