Clear image acquisition object from MATLAB workspace
clear obj removes the image acquisition object obj from the MATLAB® workspace. obj can be either a video input object or a video source object.
It is important to note that if you clear a video input object that is running (the Running property is set to 'on'), the object continues executing.
You can restore cleared objects to the MATLAB workspace with the imaqfind function.
To remove an image acquisition object from memory, use the delete function.