Arduino and Matlab interfacing

Hello, I am having a little bit confusion for arduino and matlab interfacing. Actually i have an application where I am supposed to do image processing and upon on that make decisions on rotating/stoping a motor which is a part of my hardware. So I will be doing the image processing with matlab but is it better to do the hardware programming completely on matlab with image processing and just use arduino as an interface platform with my circuit or I do the hardware part with arduino itself and then send/receive commands to/from matlab side to work along my image processing.

Please give me some suggestions on this.

Thank you.

I don't know Matlab but my strong personal preference is to do as much as possible on the PC and just use the Arduino for simple I/O functions that the PC cannot do.

...R
Serial Input Basics