Filter löschen
Filter löschen

Reading Excel File With Known Folder Path

8 Ansichten (letzte 30 Tage)
Onur ALPAY
Onur ALPAY am 27 Mai 2020
Beantwortet: Maria am 29 Jul. 2020
Hi,
The device I work with give me 2 different excel file after prosess. Name of the first one is '195648762' and the second one is 'Evt195648762'. These two file will be in the same folder on the desktop.
On the interface, user has to select the first file by searching folder. After selection, the code gets the file name, combine it with 'Evt' and gives me the second file name.
I want to read second excel file by using the file path and the second file name. How can I do that?
Thank you.

Antworten (1)

Maria
Maria am 29 Jul. 2020
First, you need to get the file '195648762' by searching it on the interface using 'uigetfile'. Then you storage that filename and path on a string by using [file,path] = uigetfile and then you edit the filename adding the Evt to it. Once you have the filename, just add it to the path and use xlsread.

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by