All the time previously I was exporting Matlab figures in a raster format (JPG, PNG)
Is there a way to export a plot from Matlab in a vector format (SVG). I need it to inset that plots into LaTeX document.
The only thing, I have found so far is a plugin from mathworks and the answer from stackexchange , but this looks rather too complicated
There is also matlab2tikz and matlabfrag which exports to eps with annotation for importing to LaTeX.
Here is an example of mine where I've used matlabfrag.
I've also discussed this with a Mathworks engineer, who agreed that there is not a nice-and-ready tool for this kind of thing, because everybody wants to do different things with it (I already mention two different LaTeX approaches). So imo the best thing to do is to play around with different tools and see which suits you best.
Most of the times I had to tinker a lot with the axes, font size of labels, etc to get it exactly how I wanted (btw adjusting a legend is the greatest hell).