There are so many functions in matlab that it can be difficult not to shadow one. If you're not doing matrix algebra it doesn't really matter if you stomp on rank.
On the other hand, rank is not a particularly good variable name. rank of what? It would be much better if that what was added to the variable name.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
3 Comments
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/480905-vector-of-integers-modification#comment_747164
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/480905-vector-of-integers-modification#comment_747164
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/480905-vector-of-integers-modification#comment_747173
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/480905-vector-of-integers-modification#comment_747173
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/480905-vector-of-integers-modification#comment_747179
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/480905-vector-of-integers-modification#comment_747179
Sign in to comment.