Data from Arduino to Matlab

Hi

Is anyone able to provide any help in regards to transferring a number from the arduino code to Matlab.

Additional Information:

I am unsure how to code a colour sensor in Matlab and have hence used an arduino. In my code I have converted a colour sensor into a grey-scale value ranging from 0-255. What I want to be able to do is to send this value continuously to Matlab. I am however unsure in the method of achieving this.

Any help would be greatly appreciated.

Thanks.

I am however unsure in the method of achieving this.

Serial.print(theColorValue);

MATLAB Support package helps you communicate with and control sensors on Arduino from MATLAB. Try it out here - http://www.mathworks.com/hardware-support/arduino-matlab.html