Watch this Author's files
yay, it works. I wrap a rsvg-convert after it to get a png file. even for simple plots, it's scandalous how bad the matlab internal plot saving utilities are.
also evidently requires the stats toolbox for e.g. mvnrnd (or a 1 line rewrite using chol)