hey, it is nice application. however i have one query. i was using this code to detect motion using 1.3 MP camera... now i am using 5.0 MP camera i found some errors like size exceeded in command window of Matlab. Could you please let me know is it due to less RAM (512 MB) or camera hardware.. Could you please guide me for same. thanks in advance!!!