Need list of all not recommended keywords

조회 수: 4 (최근 30일)
Praveen Kumar
Praveen Kumar 2019년 10월 17일
댓글: Walter Roberson 2020년 11월 11일
Where can i get all not recommended keywords in R2019b. Could you guys Please tell me as soon as possible.
  댓글 수: 3
Guillaume
Guillaume 2019년 10월 17일
편집: Walter Roberson 2019년 12월 5일
Some context for the question would be welcome. For a start it's not even clear what is meant by keword. For what matlab considers to be a keyword, see Ekemini's answer.
Walter Roberson
Walter Roberson 2019년 12월 5일
Using the names of any of the functions in basic MATLAB is also not recommended. For example avoid using sum as the name of a variable.
A few days ago we saw someone use ones as the name of a variable, and then got confused over why their calls to the function ones were not working.

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

답변 (3개)

Ekemini Stephen
Ekemini Stephen 2019년 10월 17일
To obtain a list of all MATLAB keywords, use 'iskeyword' command and the results are shown below. 'break' 'case' 'catch' 'classdef' 'continue' 'else' 'elseif' 'end' 'for' 'function' 'global' 'if' 'otherwise' 'parfor' 'persistent' 'return' 'spmd' 'switch' 'try' 'while'

Karthikeyan S
Karthikeyan S 2019년 12월 5일

shanjmuka sri ranganadham
shanjmuka sri ranganadham 2020년 11월 11일
hlo
can you say the keywords used in matlab
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 11월 11일
As Ekemini Stephen mentioned, use iskeyword()
{'break' }
{'case' }
{'catch' }
{'classdef' }
{'continue' }
{'else' }
{'elseif' }
{'end' }
{'for' }
{'function' }
{'global' }
{'if' }
{'otherwise' }
{'parfor' }
{'persistent'}
{'return' }
{'spmd' }
{'switch' }
{'try'

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by