How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?
댓글 수: 0
답변 (1개)
  Stephen23
      
      
 2019년 9월 9일
        
      편집: Stephen23
      
      
 2019년 9월 9일
  
      D = 'relative or absolute path to the specific directory';
S = dir(fullfile(D,'*.png'));
C = {S.name} % output cell array
댓글 수: 1
  Walter Roberson
      
      
 2019년 9월 10일
				C = fullfile(D, {S.name}); % output cell array
to get the fully-qualified names.
참고 항목
카테고리
				Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


