MATLAB: Graphics functions don’t work

linuxMATLABplot

I've installed Matlab on a linux(Fedora) os. No error message appeared. I went on the installation folder and ran matlab from the terminal with
./matlab
Every function works well, but when I invoke some graphic functions like plot or surf, the system stops to work like when there is an infinite loop, and i really don't know what to do. For example
>>x=[0:0.1:10];
>>plot(x);
It doesn't work.I tried with
get(0,'DefaultFigureVisible')
and the result is 'on'. I also tried 'plottools' but everything concerning graphics functions don't work

Best Answer

This could be because of graphics driver related errors. Please provide the following information
1)Does your code run without error when using software OpenGL? you can open MATLAB in software OpenGL mode using 'softwareopngl' flag.
./matlab -softwareopengl
2)Also, Please provide the output of opengl info for all computers you have tested your code on. Try running this command
>> opengl info
on MATLAB command prompt. What is the output ?