我在mac osx lion上运行Matlab r2011a。
我在matlab环境中使用uigetfile,它运行正常。但是,一旦我编译一个独立的应用程序,它决定在我调用它时不显示我的uigetfile窗口。知道什么可能是错的吗?
由于
CODE:
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[handles.file,handles.dir] = uigetfile('*.xls');
set(handles.edit1,'String',strcat(handles.dir,handles.file));
guidata(hObject,handles);
drawnow('expose');
drawnow('update');