From: Raj Bhagavathula on 15 Feb 2010 13:03 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 15 Feb 2010 14:26 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);
|
Pages: 1 Prev: link to cadence in matlab Next: Simscape Temperature Sensor Initial Condition |