The function plot(x,y) gives a blank graph window

조회 수: 15 (최근 30일)
Samama Fahim
Samama Fahim 2017년 3월 5일
답변: Peter Krammer 2018년 10월 20일
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!

답변 (3개)

Star Strider
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.

the cyclist
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)
  댓글 수: 2
Samama Fahim
Samama Fahim 2017년 3월 5일
The output is just a blank window
Samama Fahim
Samama Fahim 2017년 3월 5일
편집: Samama Fahim 2017년 3월 5일
Yes I get the same blank window even if I include 'figure'.

댓글을 달려면 로그인하십시오.


Peter Krammer
Peter Krammer 2018년 10월 20일
  1. Completely restart the Matlab
  2. 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

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by