Matlab独立编译器与uigetfile的问题
我正在 mac osx lion 上运行 Matlab r2011a。
我在 matlab 环境中使用 uigetfile 并且工作正常。但是,一旦我编译了一个独立的应用程序,它就会决定在我调用它时不显示我的 uigetfile 窗口。知道可能出什么问题吗?
感谢
代码:
% --- 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');
I am running Matlab r2011a on a mac osx lion.
I use uigetfile in my matlab environment and it works fine. However, as soon as I compile a standalone app, it decides to not show my uigetfile window when I call it. Any idea what could be wrong?
Thanks
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');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论