can not display picture in the figure window when i use ploy function.

1 view (last 30 days)
the code like this:
x = 0:pi/100:2*pi;
y = sin(x);
figure
plot(x,y)
but the figure window was all black.
  2 Comments
Purushottama Rao
Purushottama Rao on 18 Aug 2015
Yes,As Mr. Walter indicated, you should not have figure command followed by plot without semicolon or comma... Thanks Mr Walter
jianwei he
jianwei he on 21 Aug 2015
Edited: jianwei he on 22 Aug 2015
I reinstall the software. It's ok now. But Sincere thanks!

Sign in to comment.

Accepted Answer

jianwei he
jianwei he on 22 Aug 2015
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'.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!