Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 630
Beni Bogosel Avatar asked Nov 08 '12 17:11

Beni Bogosel


1 Answers

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

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

like image 183
Beni Bogosel Avatar answered Sep 28 '22 01:09

Beni Bogosel