image processing through Matlab and operating dc motors with arduino

The image is first captured and processed in matlab and the coordinates of objects in image is used to run the dc motors using arduino.please help me in coding part of both matlab and arduino

please help me in coding part of both matlab and arduino

This is NOT the matlab forum. Since I'm feeling generous, I'll get you started on the Arduino part:

void setup()
{
   Serial.begin(someSpeedGoesHere);
}

void loop()
{
   // Some code to read the serial data and drive the motors goes here
}