creating an input list from a large data set
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
RNTL
am 24 Okt. 2012
why don't you simply write
clear dir;
list = dir('c:\Lisajustin\vib\*.csv');
0 Kommentare
Weitere Antworten (2)
Azzi Abdelmalek
am 18 Okt. 2012
folder='C:\Lisajustin\vib\'
list=struct2cell(dir([folder '*.csv']));
Listdir=list(1,:)
2 Kommentare
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!