用MATLAB GUI创建两个按钮 点击按钮打开一段视频 在点击另一个播放视频 求大神指导


大概是这样握高的把
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
[filename, pathname] = uigetfile( '卖皮蠢*.avi', '开中陪始');
readerobj = mmreader([pathname,filename]);
vidFrames = read(readerobj);
numFrames = get(readerobj, 'numberOfFrames');
for k = 1 : numFrames
mov(k).cdata =vidFrames (:,:,:,k);
mov(k).colormap = [];
end
movie(handles.axes1,mov,1,readerobj.FrameRate);