开发者

Matlab Standalone Compiler problem with uigetfile

开发者 https://www.devze.com 2023-03-26 19:12 出处:网络
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 uiget

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

精彩评论

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