Corrected bug with matlab helper

Fixed a problem with incorrectly parsing the input
arguments using the nargin function. Added a Matlab
variable "isDataRequested" to trigger data reading.