Path: news.mathworks.com!newsfeed-00.mathworks.com!panix!bloom-beacon.mit.edu!llnews!53ab2750!not-for-mail
Newsgroups: comp.soft-sys.matlab
Subject: Re: Importing several CSV files at the same time (600 or more)
References: <fdri20$q3$1@fred.mathworks.com> <4190901.1191329612077.JavaMail.jakarta@nitrogen.mathforum.org>
From: Peter Boettcher <boettcher@ll.mit.edu>
Message-ID: <muyir5pa33h.fsf@G99-Boettcher.llan.ll.mit.edu>
Organization: MIT Lincoln Laboratory
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux)
Cancel-Lock: sha1:SPRkBQ0LBTvT/qTBETHV5rKFDF8=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 27
Date: Tue, 02 Oct 2007 12:33:22 -0400
NNTP-Posting-Host: 155.34.163.114
X-Complaints-To: news@ll.mit.edu
X-Trace: llnews 1191342455 155.34.163.114 (Tue, 02 Oct 2007 12:27:35 EDT)
NNTP-Posting-Date: Tue, 02 Oct 2007 12:27:35 EDT
Xref: news.mathworks.com comp.soft-sys.matlab:431037


BO <bianca_osorio@hotmail.com> writes:

> 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

You were not supposed to replace "directory" with your directory.  It
was supposed to be a function which you called using your directory as
a parameter.

If you don't know what I am talking about, take a break from this task
and read the "Getting Started" part of the MATLAB documentation.

-Peter