An analog input (from a LDR) is acquired and sent to Matlab through Arduino physical USB connection. Inside Matlab, the communication is made by the serial port.
Both (Arduino and Matlab) source codes can be downloaded from the bottom of this page.
Source code of project "Real-time Data Acquisition from Arduino to Matlab" by Felipe Langellotti Silva is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.