MATLAB: Specify type of variable to allow tab completion

code analyzerMATLABmatlab coderobject-orientedoopstatic analysistab completiontype inference

Is there a way to indicate the type of a variable to the static analysis tool in Matlab to allow tab completion when coding?
This could be usefull when passing objects as an argument to a function.

Best Answer

Ken Atwell replied the question:
The new function argument validation allows to specify the type of function input variables. This will allow tab completion when writing the code.
This is new in Matlab 2019b and will cause syntax errors in any matlab version before 2019b.
More info here: