plotting in matlab extremely slow

조회 수: 19 (최근 30일)
Linus Härenstam-Nielsen
Linus Härenstam-Nielsen 2016년 10월 9일
댓글: Antonio Sisbarra 2019년 5월 8일
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
KSSV
KSSV 2016년 10월 9일
How about
x =1:10;
plot(x)
Jan
Jan 2016년 10월 9일
Which renderer do you use? Does the profile r reveal, where the time is spent?

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

답변 (1개)

Prasad Mendu
Prasad Mendu 2016년 10월 18일
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
Walter Roberson
Walter Roberson 2017년 7월 16일
Elizabeth Hearn: which release of MATLAB are you using, and which OS-X or MacOS release?
Antonio Sisbarra
Antonio Sisbarra 2019년 5월 8일
Just a little mistake: for me it worked
opengl('save','software');
with save between quotes

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

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by