From: Raj Bhagavathula on
I am new to matlab GUI.
I want to play a matlab movie file from a GUI. Essentially I have created a button, when clicked plays the movie.
Right now, I am not able to pass the movie variable into the GUI function. How can I do this?
From: ImageAnalyst on
Raj Bhagavathula:
Here's a snippet of code that plays an avi movie in an axes on a GUI:

% Read the file into a MATLAB movie structure.
myVideo = aviread(fullImageFileName);
myVideoParameters = aviinfo(fullImageFileName);
numberOfFrames = myVideoParameters.NumFrames;

% Play the movie in the axes. It doesn't stretch to fit the axes.
% The macro will wait until it finishes before continuing.
movie(handles.axesImage, myVideo);