MATLAB: WHAT ARE THE CORRECT RESPONSES TO THE FOLLOWING HELP QUERIES ?
조회 수: 2 (최근 30일)
이전 댓글 표시
ver
-------------------------------------------------------------
MATLAB Version: 9.4.0.813654 (R2018a)
MATLAB License Number:
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 17134)
Java Version: Java 1.8.0_144-b01 with Oracle Corporation Java HotSpot
(TM) 64-Bit Server VM mixed mode
--------------------------------------------------------------
help sys sys not found.
help SYS SYS not found.
help lsim help for lsim
help LSIM help for lsim
help lstm lstm not found
help LSTM help for lsim <==== WRONG
help gpu gpu is a folder.
help GPU gpu is a folder.(GEH: why is gpu BOLD here?)
help cpu --- help for pi ---
pi 3.1415926535897....
pi = 4*atan(1) = imag(log(-1)) = ...
3.1415926535897....
Reference page for pi
help CPU CPU not found.
help os os not found.
help OS OS not found
댓글 수: 1
Rik
2018년 11월 8일
I don't really understand your question. Do you want confirmation of this on different releases? On different OSes but same release? Or are you looking for the reason of the inconsistent responses?
답변 (1개)
Steven Lord
2018년 11월 8일
MATLAB started suggesting corrections for mistyped functions or variable names in the Command Window in release R2012b. That suggestion functionality was expanded to calls to help in release R2015b and to the Live Editor in release R2017a. See the Release Notes for more information.
The fact that help lstm and help LSTM behave differently does seem odd. I've entered that into the bug database.
I was not able to reproduce the behavior you saw with help cpu. Is it possible you have an Add-On that has a package folder +cpu that has only a function named pi or something like that?
In general if you have situations where you feel MATLAB gave the wrong suggestion or there is a better suggestion it should have given, please send that feedback to Technical Support so they can pass it along to the developers responsible for the correction suggestion functionality as a bug or an enhancement.
As for why gpu is in bold in certain circumstances, I believe that's because when we used to highlight the name of the function in the help text in ALL CAPS it would cause users to receive an error when they tried to copy and paste a section of the syntax from the help text. When help sees the name of a function in ALL CAPS in its help text file, it now displays it in bold instead to make it stand out visually while still being "functional" when copied and pasted. [I don't remember when this started offhand.]
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Hamming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!