Borrar filtros
Borrar filtros

Plot function not working (black screen)

6 visualizaciones (últimos 30 días)
Nicolas Daans
Nicolas Daans el 13 de Mzo. de 2016
Comentada: Claudio Ladeira el 27 de Dic. de 2021
I've recently installed Matlab 2015b (the latest 32-bit version) on my Windows Vista computer. I know that this OS is no longer supported, so if Windows Vista is the cause of my problem, then I'm willing to accept that.
Most of Matlab seems to work just fine though. In fact, the only problem I've had so far is with the plot tool. There is no error message and the plot tool opens up, but I just get a black screen where the plot should be (see screenshot). The same happens with the surf tool.
What could be causing this? Am I missing some package? Thank you for any tips you might have.

Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Mzo. de 2016
Please show us the output of
opengl info
If it says that hardware opengl is being used, try
opengl software
and then try plotting again.
  3 comentarios
Walter Roberson
Walter Roberson el 14 de Mzo. de 2016
The driver might be outdated.
Anastasiia Abramova
Anastasiia Abramova el 24 de En. de 2018
Walter Roberson, thank you so much !

Iniciar sesión para comentar.

Más respuestas (4)

Muhammad Usman Saleem
Muhammad Usman Saleem el 13 de Mzo. de 2016
Editada: Muhammad Usman Saleem el 13 de Mzo. de 2016
correct this to code
x=[1:100]; % mark square brackets in order to make a vector.
>> plot(x,x)
output is plot with straight line
  3 comentarios
Muhammad Usman Saleem
Muhammad Usman Saleem el 14 de Mzo. de 2016
the way to assign a vector is also correct by my way. In above screen shots its seem that small brackets () has been used for generation of vector
Walter Roberson
Walter Roberson el 14 de Mzo. de 2016
Using (1:100) is also fine, and is not the cause of the user's problem.

Iniciar sesión para comentar.


shahzad muhammad
shahzad muhammad el 22 de Oct. de 2017
Hello, same problem with me, I attached screen short, I use opengl software command but still no plot appear.I am using MATLAB 2015a.

dhaifallah Alotaibi
dhaifallah Alotaibi el 30 de Oct. de 2017
Hi I've have the same problem as well. I'm using 2017 could anyone help me.

Claudio Ladeira
Claudio Ladeira el 27 de Dic. de 2021
This is an old thread, but i hope you can help me here. I'm using the online version, and it's showing a nice plot when I execute the plot command for the first time. After that, I'm only getting a black screen (I'm using Safari). I ran the 'opengl software' command as you recommended, but it didn't work. Do you have any other recommendation?
  1 comentario
Claudio Ladeira
Claudio Ladeira el 27 de Dic. de 2021
I got a solution! I tried the same plot using a different browser (Chrome) and it worked!

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by