How can I access an xls file through a GUI that is outside system32/ C drive?

조회 수: 1 (최근 30일)
I followed a video from the mathworks site on "Reading excel data into Matlab with GUI part 4." I followed the exact same steps and code still when I try loading an xls file it redirects me to C drive System 32 whereas my file is on D drive, and even if i go to D and select it still does not give me column names in the drop down box. I also tried to change folders on the search path but it still kept redirecting it to C drive. How can I solve this?

채택된 답변

Steven Lord
Steven Lord 2019년 8월 2일
When during this video does Doug show the "exact same steps and code" that you're copying? I skimmed it but I don't see any reference to actually reading the data. I suspect that was covered in one of the previous parts of the series.
Anyway, can you show a small segment of the code you're running to try to open the .xls file? Seeing that may help us understand what's going on in your code.
  댓글 수: 4
Kinjal Mutha
Kinjal Mutha 2019년 8월 9일
I renamed the fields. It still didn't work. I am guessing there is some other problem all together.
Anyway thankyou for your help, I am still trying to figure it out. :)
Steven Lord
Steven Lord 2019년 8월 9일
By "still didn't work" do you mean you receive the exact same error, or did the error message change (perhaps mentioning a different line of code?)
It's probably going to be difficult to debug without seeing your code. Can you attach the figure file and the code file associated with your GUI to a comment? Use the paper clip icon in the Insert section of the toolbar and select each of those files in turn.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by