title: What is the output of the following code in Matlab?
body: <pre><code>a = [1 2 3;4 5 6;7 8 9;];
  
  [~ ,im]=sort(reshape(a,1,[])'descend');
  </code></pre>
  
  <p>So what actually is im getting as output,it is not a sorted array?</p>