Problem using uigetfile function

I am trying to use the uigetfile function to allow the user to open a file. When I run the code, it opens a dialog box that says 'Select File for Save As'.
Here is the code:
FileName=uigetfile;
What am I doing wrong?
Thanks,
Dave

댓글 수: 3

CAM
CAM 2019년 10월 30일
When I use that command as shown I get "Select file to Open". Not sure why you are getting the "save as" title. What happens if you specify text to display as an input?
David Suprak
David Suprak 2019년 10월 30일
Cam,
I hesitate to admit this, but it turns out I had not yet saved the code. I'm sorry to waste your time. Thanks for responding, though.
Dave
CAM
CAM 2019년 10월 31일
No worries. Glad it worked out for you. Good luck with your coding.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Dialog Boxes에 대해 자세히 알아보기

제품

태그

질문:

2019년 10월 29일

댓글:

CAM
2019년 10월 31일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by