MATLAB Answers

Need list of all not recommended keywords

6 views (last 30 days)
Praveen Kumar
Praveen Kumar on 17 Oct 2019
Commented: Walter Roberson on 5 Dec 2019
Where can i get all not recommended keywords in R2019b. Could you guys Please tell me as soon as possible.

  3 Comments

Guillaume
Guillaume on 17 Oct 2019
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 on 5 Dec 2019
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.

Sign in to comment.

Answers (2)

Ekemini Stephen
Ekemini Stephen on 17 Oct 2019
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 Comments

Sign in to comment.


Sign in to answer this question.