title: analogRead function not working in MATLAB
body: <p>I am new to Arduino and I am trying to control it through MATLAB. I have downloaded the arduino IO package and installed it.I am using MATLAB 2014a.I have a LED and I change its brightness by changing the PWM voltage as follows :</p>
  
  <pre><code>a=arduino('COM3');
  brightness_step = (5-0)/20;
     for i = 1:20
        writePWMVoltage(a, 11, i*brightness_step);
        val=a.analogRead(0);
        display(val)
        pause(0.1);
     end
  
     for i = 1:20
        writePWMVoltage(a, 11, 5-i*brightness_step);
        val=a.analogRead(0);
        display(val)
        pause(0.1);
     end
  clear a
  </code></pre>
  
  <p>Everything works great except for the analogRead part which throws the following error :
  <strong>No appropriate method, property, or field analogRead for class arduino.</strong></p>
  
  <p>What am I doing wrong?</p>