title: .net: How to get data from array index?
body: <p><strong>Code :</strong>   </p>
  
  <pre><code>  byte[] bytes = new byte[fs.Length];
     var read =  (fs.Read(bytes, 0, Convert.ToInt32(fs.Length)));
     long flength = fs.Length;
     int fSize = int.Parse(flength.ToString());
     MWArray[] in_Arrw = new MWArray[((int)read)];
  
     MWNumericArray arr = new MWNumericArray(fSize, 1, bytes);
  
     ChordRecognizer hj = new ChordRecognizer();
  
     MWArray in_Arr = hj.estimateCost(arr);
     fs.Close();   
  </code></pre>
  
  <p>I am unable to get what it returns in <code>in_Arr = hj.estimateCost(arr)</code>, throws exception if I try to access <code>in_Arr[0]</code>, can see in images</p>
  
  <p>Please help.</p>
  
  <p><strong>Quick watch:</strong> </p>
  
  <p><img src="https://i.stack.imgur.com/BAfLL.png" alt="enter image description here"></p>
  
  <p>.
  <img src="https://i.stack.imgur.com/LvAmM.png" alt="enter image description here"></p>
  
  <p><strong>Stack Trace :</strong> </p>
  
  <blockquote>
    <p>at MathWorks.MATLAB.NET.Arrays.MWArray.ArrayIndexer(MWArray srcArray,
    Int32[] indices)   at
    MathWorks.MATLAB.NET.Arrays.MWNumericArray.get_Item(Int32[] indices)
    at 
    MathWorks.MATLAB.NET.Arrays.MWArray.get_Item(Int32[] indices)</p>
  </blockquote>