analogRead function not working in MATLAB
That function is part of legacy code. 


  NOTE: This solution (formerly known as "Arduino IO Package") is no
  longer supported. It is recommended that you use Arduino support
  packages that are developed and supported by MathWorks:
  
  
  MATLAB Support Package for Arduino Hardware: Read, write, and analyze data from Arduino sensors 
  http://www.mathworks.com/hardware-support/arduino-matlab.html
  Simulink Support Package for Arduino Hardware: Develop algorithms that run standalone on your Arduino 
  http://www.mathworks.com/hardware-support/arduino-simulink.html
  
  
  Use this legacy support only if one of the following is true: 
  
  - You are using MATLAB R2013b or earlier (but not earlier than R2011a).


You are using 2014a, so its probably the reason analogRead isn't working. Get the more recent package and use this function instead: