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

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Steven Lord
Steven Lord el 2 de Ag. de 2019
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 comentarios
Kinjal Mutha
Kinjal Mutha el 9 de Ag. de 2019
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 el 9 de Ag. de 2019
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.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by