Change the default warning settings

조회 수: 2 (최근 30일)
Robert Steidl
Robert Steidl 2015년 12월 23일
댓글: Walter Roberson 2015년 12월 23일
Dear Community,
is it possible to change the default warning settings? Even when I start MatLab I receive one particular warning message! When I turn this warning off (using warning('off',id)) it is just for the current session! When I restart MatLab this message appears again!
Can anyone help me with this issue?
Thanks, Robert

답변 (2개)

Walter Roberson
Walter Roberson 2015년 12월 23일
You can edit your startup.m
However, if you are receiving a warning on startup then it is possible that the warning would be issued before startup.m would be read. What warning is it you are encountering?
  댓글 수: 2
Robert Steidl
Robert Steidl 2015년 12월 23일
Hello - this is the warning from the Command Window:
Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information, click here.
Using warning('query','last') results in the prompt:
warning('query','last') The state of warning 'MATLAB:hg:AutoSoftwareOpenGL' is 'on'.
Walter Roberson
Walter Roberson 2015년 12월 23일
opengl('save','software')
You could also try
opengl hardwarebasic
to see if that works for you.

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


Robert Steidl
Robert Steidl 2015년 12월 23일
Hy,
the command opengl('save','software') did work because it changes the default starting setting for opengl to software! Thanks for that!
What I originally wanted (to disable this warnning) is not solved due that - but I tried a lot to find the m-file where I can change this setting, but as you know I failed ´to find that :-)
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 12월 23일
My suspicion is that this warning was being sent before your startup.m would be executed. I do not have MATLAB installed on that operating system to test with.

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

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by