Cannot save opengl settings

5 ビュー (過去 30 日間)
PhilippS 2016 年 5 月 5 日
コメント済み: Walter Roberson 2016 年 5 月 6 日
Running Matlab 2014a under Ubuntu 14.04. Trying opengl('save', 'software') gives: OpenGL incorrect input argument: save
How do I set opengl to software by default fur future sessions?

回答 (2 件)

Mike Garrity
Mike Garrity 2016 年 5 月 5 日
I think that the "save" feature was added in R2014b. So you can't use it in R2014a.
The simplest workaround would probably be to edit your startup.m file and add a call to the opengl command to set it to what you want.

PhilippS 2016 年 5 月 6 日
Ubuntu doesn't allow changing the opengl settings during the session.
Is there really no way to change the default settings in 2014a?
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 5 月 6 日
The R2014a documentation says,
"On UNIX systems, you must set the OpenGL version before MATLAB initializes OpenGL. Therefore, you cannot issue the opengl info command or create graphs before you call opengl software. To reenable hardware accelerated OpenGL, you must restart MATLAB."
So it is not generally true that you cannot change the opengl settings during the session: you just have to do it before you do graphics. Such as doing the change in startup.m



Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by