Many thanks.
how to fix this upper directory link?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Leon
am 15 Feb. 2020
Kommentiert: Leon
am 15 Feb. 2020
File_W = fullfile(app.Path, '..', 'MyFolder', [fileName, '_myFormat_.xlsx']);
writetable(T1, File_W);
The above is my code to write my Excel file in a upper level directory (parallel with app.Path, in this case: /Voumes/DATA/ABC) named MyFolder. It works well. Here is the probelm. Now when I try to display 'File_W' in my uialert, it shows as the below:
/Volumes/DATA/ABC/../MyFolder
When it should be:
/Volumes/DATA/MyFolder
Is there a way I can fix it?
Thanks.
Akzeptierte Antwort
JESUS DAVID ARIZA ROYETH
am 15 Feb. 2020
File_W = fullfile(app.Path, '..', 'MyFolder', [fileName, '_myFormat_.xlsx']);
writetable(T1, File_W);
a=dir(File_W);
namefolder=a(1).folder
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!