I have the same problem as written here before, but the externalization doesn't work. I always get the following message:
tikz: Sorry, the system call 'pdflatex -halt-on-error -interact
I try to input some simulation result from Matlab via matlab2tikz. If I run my .tex file without externalization it works just fine, but if I write
\tikzexternalize[prefix=tikzfig/]
it does not work any more.
Here is a part of my header:
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\pgfplotsset{plot coordinates/math parser=false}
\usepackage{tikz}
\usepackage{tikzscale}
\usepgfplotslibrary{external}
\tikzexternalize[prefix=tikzfig/]
I also saw the answer here, but it still doesn't work.
I am using Miktex and Texstudio. I am also compiling via dvips since I am using psfrag. The compile command is:
pdflatex -shell-escape name
where name is just the file name without file extension, here .tex.