hello i want to make GUI with 2 buttons. 1. button is for browse video file (it also connect path and file name into variable). this is my code in first button...
function pushbutton1_Callback(hObject, eventdata, handles)
fname = strcat(videoPathName,videoName);
so path and file name are in workspace in variable 'fname'
by second button a i want to run mfile 'run' that need path and file name from 1. button. so i wroute there only:
function pushbutton2_Callback(hObject, eventdata, handles)
in mfile run is code:
workingDir = 'C:\Users\lukino\Documents\MATLAB\temp';
disp('urobil temp dir')
shuttleVideo = VideoReader(fname);
dirrectories are made but video can not open... it wrote error:
Undefined function or variable 'fname'
but if i want to run it from mfile idetor it works... what is wrong?