开发者

Matlab Standalone Compiler problem with uigetfile

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 s开发者_JAVA百科tandalone 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');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜