The function plot(x,y) gives a blank graph window
12 次查看(过去 30 天)
显示 更早的评论
I typed the following code in the command window, and the figure window comes out blank:
>> x = [1 2 3 5 7 7.5 8 10]
>> y = [2 6.5 7 7 5.5 4 6 8]
>> plot(x,y)
I am using MATLAB R2010a on Windows 10, 64-bit. Please help!
0 个评论
回答(3 个)
Star Strider
2017-3-5
According to Platform Road Map for the MATLAB and Simulink Product Families (link), the earliest version of MATLAB supported on Windows 10 is R2015a.
That could be the problem.
0 个评论
the cyclist
2017-3-5
编辑:the cyclist
2017-3-5
That command produces the expected plot for me.
You might be pointing to something other than the built-in plot command. What is the output of the command
which plot -all
Also, do you also get a blank plot window if you force the creation of a new figure window?
x = [1 2 3 5 7 7.5 8 10]
y = [2 6.5 7 7 5.5 4 6 8]
figure
plot(x,y)
Peter Krammer
2018-10-20
- Completely restart the Matlab
- Try this set command, before plotting into figure
set(0, 'defaultFigureRenderer', 'painters')
3. If its does not helps, try follow:
opengl info
opengl software
Nice Day
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!