I am using a ultrasonic distance sensor in my project and it seems that the ArduinoIO Package doesn't support it. Reading the sensor requires the "pulsein" function, which seems not available in the Matlab environment. Any possible solution?
P.S. I need to control DC motors (using PWM) according to the distance read from the sensors. At the same time, the distance data needs to be taken down, analyzed and used to draw graph so Matlab seems essential.