Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: BO <bianca_osorio@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Importing several CSV files at the same time (600 or more)
Date: Tue, 02 Oct 2007 08:53:01 EDT
Organization: The Math Forum
Lines: 14
Message-ID: <4190901.1191329612077.JavaMail.jakarta@nitrogen.mathforum.org>
References: <fdri20$q3$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1191329612 10265 144.118.30.135 (2 Oct 2007 12:53:32 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Tue, 2 Oct 2007 12:53:32 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:430993



Hey Thank u for ur answer.. i try the code u said.. just with the directory i want... to see what it does..
%let user select directory from UI, 
%and pass this directory as a parameter
function ProcessFiles ('C:\Users\Biankita\Documents\EQUIMAVENCA\DATA\RD04-1\FFTs\*.csv'); 
allFiles = dir('C:\Users\Biankita\Documents\EQUIMAVENCA\DATA\RD04-1\FFTs\*.csv');
for k = 1 : 100(allFiles)
if(strfind(allFiles(k).name, '.csv'))
processFile([C:\Users\Biankita\Documents\EQUIMAVENCA\DATA\RD04-1\FFTs '\' allFiles(k).name]);
end
end
end
 but i get this...
??? Error: File: ProcessFiles.m Line: 3 Column: 24
Missing MATLAB operator