title: How to find minimum value of a column imported from Excel using MATLAB
body: <p>I have a set of values in the following pattern.</p>
  
  <pre><code>A   B   C   D
  1   5   6   11
  2   6   5   21
  3   7   3   42
  4   3   7   22
  1   2   3   54
  2   3   2   43
  3   4   3   27
  4   3   2   14
  </code></pre>
  
  <p>I exported the every column into MATLAB workspace as follows.</p>
  
  <pre><code>A = xlsread('F:\R.xlsx','Complete Data','A2:A43'); 
  B = xlsread('F:\R.xlsx','Complete Data','B2:B43'); 
  C = xlsread('F:\R.xlsx','Complete Data','C2:C43'); 
  D = xlsread('F:\R.xlsx','Complete Data','D2:D43'); 
  </code></pre>
  
  <p>I need help with code where the it has to check the Column A, find the lowest D value and output the corresponding B and C values. I need the output to look like.</p>
  
  <pre><code>1   5   6   11
  2   6   5   21
  3   4   3   27
  4   3   2   14
  </code></pre>
  
  <p>I read through related questions and understand that I need to make it a matrix and sort it based on the element on the 4th column using </p>
  
  <h2>sortrows</h2>
  
  <p>and get indices of the sorted elements. But I am stuck here. Please Guide me.</p>