MATLAB Answers

Need list of all not recommended keywords

조회 수: 30(최근 30일)
Praveen Kumar
Praveen Kumar 17 Oct 2019
댓글: Walter Roberson 11 Nov 2020
Where can i get all not recommended keywords in R2019b. Could you guys Please tell me as soon as possible.
  댓글 수: 3
Walter Roberson
Walter Roberson 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.

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


Ekemini Stephen
Ekemini Stephen 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'

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

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

Community Treasure Hunt

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

Start Hunting!

Translated by