How do i save .avi file imported through a GUI into a variable so it can be played?

2 次查看(过去 30 天)
i have created a GUI and have opened the .avi file into this, however it doesn't right the .avi file to a variable when its opened, how would i do this.
this is the code so far:
% --- Executes on button press in pushbutton6.import video function pushbutton6_Callback(hObject, eventdata, handles) % hObject handle to pushbutton6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
[nm,pth]=uigetfile({'*.avi'},'Load Matlab File'); mmObj=mmreader([pth,nm]); handles.pth=pth; handles.nm=nm; handles.Video=mmObj; image1=read(mmObj,1); axes(handles.axes1); imshow(image1); guidata(hObject,handles);

回答(1 个)

Franchesca
Franchesca 2014-5-13
Can anybody help???

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by