MATLAB: Can not display picture in the figure window when i use ploy function.

all blackfigureplot

the code like this:
x = 0:pi/100:2*pi;
y = sin(x);
figure
plot(x,y)
but the figure window was all black.

Best Answer

The reason may be graphics changes in R2014b
One can execute this command at the MATLAB command line:
opengl('save','software')
and execute this command at the MATLAB command line:
opengl info
to make sure the Software fields is 'true'.
Related Question