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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by