User`s guide
3 Working with MPlay
Viewing Videos from the MATLAB Workspace
The MPlay GU I ena bles you to view videos that are repres ented as variables
in the MATLAB workspace, such as video data ex ported to the workspace by
the Video To Workspace block. The following procedure shows you how to use
theMPlayGUItoviewsuchavideo:
1 Define a variable that represents a video sequence in the MATLAB
workspace. For example, to read an entire video into memory, type
d = aviread('vipmen.avi');
at the MATLAB command prompt.
2 Open an MPlay GUI by typing
mplay
at the MATLAB command prompt.
3 ConnecttheMPlayGUItothevariableintheMATLABworkspaceby
clicking
on the MPlay GUI. In the Import from Workspace dialog box,
select
d from the list of workspace variab les. T hen click Im port.
ThefirstframeofthevideoappearsintheMPlaywindow.
3-2