Filter löschen
Filter löschen

how can I get the path to a folder from user and open files with .fig format?

1 Ansicht (letzte 30 Tage)
the question says it all!

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 14 Jan. 2014
Bearbeitet: Azzi Abdelmalek am 14 Jan. 2014
Use uigetfile
[file,folder]=uigetfile('*.fig');
filename=fullfile(folder,file)
  2 Kommentare
Mohammad
Mohammad am 15 Jan. 2014
Bearbeitet: Azzi Abdelmalek am 15 Jan. 2014
thank you so much, but I want to pick more than 1 file, so I have changed the code to:
[file,folder]=uigetfile('*.fig','multiselect','on');
filename=fullfile(folder,file)
and when I choose more than 1 file, I get the following error:
??? Undefined function or method 'eq' for input arguments of type 'cell'.
Error in ==> fullfile at 37
if (f(end)==fs) && (part(1)==fs),
Error in ==> modifier at 5
filename=fullfile(folder,file);
what should I do?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by