This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Specify name of currently selected video source


The SelectedSourceName property specifies the name of the video source object from which the video input object acquires data. The name is specified as a character vector. By default, the video input object selects the first available video source object stored in the Source property.

The toolbox defines a video source as one or more hardware inputs that are treated as a single entity. For example, hardware supporting multiple RGB sources, each of which is made up of three physical connections (red-green-blue), is treated as a single video source object.



Read only while running

Data type

Character vector


The video input object assigns a name to each video source object it creates. Names are defined at object creation time and are vendor specific.

By default, the toolbox uses the first available source name.


To see a list of all available sources, create a video input object.

vid = videoinput('matrox');

View a list of all available video source objects.

src_names = vid.SelectedSourceName;

See Also





Was this topic helpful?