MATLAB Answers

Need list of all not recommended keywords

30 ビュー (過去 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 件のコメント

darova
darova 2019 年 10 月 17 日
Here is one keyword: eval
Guillaume
Guillaume 2019 年 10 月 17 日
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'

  0 件のコメント

サインインしてコメントする。



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'

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by