필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Mohammad
Mohammad 2014년 1월 14일
댓글: Azzi Abdelmalek 2014년 1월 15일
the question says it all!

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 14일
편집: Azzi Abdelmalek 2014년 1월 14일
Use uigetfile
[file,folder]=uigetfile('*.fig');
filename=fullfile(folder,file)
  댓글 수: 2
Mohammad
Mohammad 2014년 1월 15일
편집: Azzi Abdelmalek 2014년 1월 15일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by