plotting in matlab extremely slow

Every time I plot something it takes several seconds for MATLAB do draw it. Specifically:
>> figure
opens a figure with no significant delay but
>> plot(1:10)
takes about 10 seconds before anything is drawn.
Any ideas what might be wrong? I've attached a file with my DxDiag information below if you want to know what my setup is. I'm currently using MATLAB R2016b but I had the same problem with R2014b.

2 comentarios

KSSV
KSSV el 9 de Oct. de 2016
How about
x =1:10;
plot(x)
Jan
Jan el 9 de Oct. de 2016
Which renderer do you use? Does the profile r reveal, where the time is spent?

Iniciar sesión para comentar.

Respuestas (1)

Prasad Mendu
Prasad Mendu el 18 de Oct. de 2016

2 votos

For certain graphic cards these performance issues can be resolved by using the software implementation of OpenGL. You can switch to this implementation by executing the command given below at MATLAB Command Window:
>>opengl software
To permanently use OpenGL software, execute this:
>>opengl(save,'software')

3 comentarios

Elizabeth Hearn
Elizabeth Hearn el 15 de Jul. de 2017
>> opengl software
Error using opengl Switching to software OpenGL rendering is not supported on the Mac platform.
Does not work for Mac.
Walter Roberson
Walter Roberson el 16 de Jul. de 2017
Elizabeth Hearn: which release of MATLAB are you using, and which OS-X or MacOS release?
Antonio Sisbarra
Antonio Sisbarra el 8 de Mayo de 2019
Just a little mistake: for me it worked
opengl('save','software');
with save between quotes

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 9 de Oct. de 2016

Comentada:

el 8 de Mayo de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by