title: How to know the value of indices using find function?
body: <p>I have a 4096x2 matrix called <code>datos1</code>. I'm trying to plot from its highest value with <code>[valor_maximo, canal_maximo]=max(datos1(:,2));</code> to a percentage given (5% of the highest value) with </p>
  
  <pre><code>conteomin=ceil(valor_maximo*0.05);
  [canal_minimo, valor_minimo]=find(datos1(:,2) == conteomin);
  </code></pre>
  
  <p>My question is, now that I have the indices in both cases, how do I know the values in the <code>find</code> function?</p>
  
  <p>At the moment, <code>[canal_minimo, valor_minimo]=...</code>returns the value for <code>canal_minimo</code> but for <code>valor_minimo</code> only the number of incidences to each row and not the actual value in the matrix; i.e. <code>canal_minimo=3558 valor_minimo=1</code>,  instead of equal to <code>conteomin</code>.</p>
  
  <pre><code>fileID=fopen(uigetfile('*.txt', 'Seleccione el archivo'));
  [archivo,~,~,~]=fopen(fileID(1));
  datos1=dlmread(archivo,' ',10,0);
  fclose(fileID);
  set(handles.uitable1,'Data',datos1);
  
  [valor_maximo, canal_maximo]=max(datos1(:,2));
  conteomin=ceil(valor_maximo*0.05);
  [canal_minimo, valor_minimo]=find(datos1(:,2) == conteomin);
  </code></pre>