Filter löschen
Filter löschen

creating an input list from a large data set

5 Ansichten (letzte 30 Tage)
Lisa Justin
Lisa Justin am 18 Okt. 2012
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.

Akzeptierte Antwort

RNTL
RNTL am 24 Okt. 2012
why don't you simply write
clear dir;
list = dir('c:\Lisajustin\vib\*.csv');

Weitere Antworten (2)

Sachin Ganjare
Sachin Ganjare am 18 Okt. 2012

Azzi Abdelmalek
Azzi Abdelmalek am 18 Okt. 2012
folder='C:\Lisajustin\vib\'
list=struct2cell(dir([folder '*.csv']));
Listdir=list(1,:)
  2 Kommentare
Lisa Justin
Lisa Justin am 19 Okt. 2012
Bearbeitet: Lisa Justin am 19 Okt. 2012
It is giving error still
Azzi Abdelmalek
Azzi Abdelmalek am 24 Okt. 2012
what kind of error?

Melden Sie sich an, um zu kommentieren.

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!

Translated by