This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Determine whether image acquisition object is associated with image acquisition device


bool = isvalid(obj)


bool = isvalid(obj) returns true if the video input object obj is valid, otherwise false. An object is an invalid image acquisition object if it is no longer associated with any hardware; that is, the object was deleted using the delete function. If this is the case, obj should be cleared from the workspace.

If obj is an array of video input objects, bool is a logical array where each element in bool represents the corresponding element in obj. If an object in obj is valid, the isvalid function sets the corresponding element in bool to true, otherwise false.

Introduced before R2006a