Explanation

The sort function supports a descend argument that sorts in descending order. Code Analyzer is indicating a case where this might be useful.

Previously, if you wanted to sort an array in descending order, you had to call the sort function, and then reverse the result by calling the flipud or fliplr function. Now MATLAB supports the descend argument.


Suggested Action

Rewrite the expression using the descend argument. For example, if your code currently looks like this, and a is a row vector:

a = fliplr(sort( a ));

consider rewriting it like this:

a = sort(a, 'descend');