creating an input list from a large data set
    조회 수: 11 (최근 30일)
  
       이전 댓글 표시
    
Hi! I want to create an input list from a large data set. dir .*csv displays all the csv but when i do
dir='C:\Lisajustin\vib'
Listdir=sprintf('%s%s',dir, ' *.csv');
i get error
 Error using ==> sprintf
Function is not defined for 'struct' inputs.
댓글 수: 0
채택된 답변
  RNTL
      
 2012년 10월 24일
        why don't you simply write
clear dir;
list = dir('c:\Lisajustin\vib\*.csv');
댓글 수: 0
추가 답변 (2개)
  Azzi Abdelmalek
      
      
 2012년 10월 18일
        folder='C:\Lisajustin\vib\' 
list=struct2cell(dir([folder '*.csv']));
Listdir=list(1,:)
댓글 수: 2
참고 항목
카테고리
				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!



