"MCC does not permit KEYBOARD function"

조회 수: 3 (최근 30일)
Otis
Otis 2020년 4월 20일
댓글: Otis 2020년 4월 20일
"MCC does not permit KEYBOARD function" ... This is the error message I see in the Matlab editor for a keyboard statement. I can't find any explanation for this. Note: I can type "keyboard" at the prompt, and it works (though that is not what one would normally do). This is my environment:
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.6.0.1072779 (R2019a)
MATLAB License Number: 248458
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 17763)
Java Version: Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
Thanks a bunch,
Bill

채택된 답변

Steven Lord
Steven Lord 2020년 4월 20일
The keyboard function is classified as a "Debugging and Analysis" function, that's the category in which its documentation page is classified. That falls into the first of the categories given on this documentation page which lists a subset of functions that are not supported for compilation in MATLAB Compiler. The keyboard function is explicitly listed on that page as not being supported.
If you describe how your application tries to use keyboard we may be able to suggest if there's an alternative (pause, perhaps?) or if what you're trying to do is fundamentally incompatible with MATLAB Compiler.
  댓글 수: 3
Steven Lord
Steven Lord 2020년 4월 20일
You've enabled the "MATLAB Compiler (Deployment) Messages" category in Code Analyzer. If you do that, Code Analyzer will check for those issues in all the MATLAB program files it analyzes, whether you intend to deploy them or not. You could disable that message or the whole category: on the Home tab of the Toolstrip, click on Preferences in the Environment section. Under MATLAB there's an entry for Code Analyzer. Let the Preferences window load the messages, scroll down to that category, and turn on or off those messages you want on or off right now.
See this documentation page for more information.
Otis
Otis 2020년 4월 20일
Thanks so much!! You Rock!!
Bill

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by