Search code examples
matlabsegmentation-faultmatlab-figure

Segmentation violation detected - matlab


I get the error Segmentation violation detected in Matlab 7.12.0.635 (R2011a) (on Ubuntu 12.10) whenever I try to save a figure as jpg or png. I can save a figure as .fig, though...

What can I do to fix this problem? Have you encountered this problem?


Solution

  • Solved by changing the default renderer to zbuffer. Add this line to the startup.m file:

    set(0, 'DefaultFigureRenderer', 'zbuffer');