Newsgroups: comp.soft-sys.matlab
Subject: Re: Importing several CSV files at the same time (600 or more)
References: <fdri20$q3$> <>
From: Peter Boettcher <>
Message-ID: <>
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
X-Trace: llnews 1191342455 (Tue, 02 Oct 2007 12:27:35 EDT)
NNTP-Posting-Date: Tue, 02 Oct 2007 12:27:35 EDT
Xref: comp.soft-sys.matlab:431037

BO <> 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.