Path: news.mathworks.com!not-for-mail
From: "Jetson Ronald" <ajetsonronald@yahoo.co.in>
Newsgroups: comp.soft-sys.matlab
Subject: Multiple input file analysis
Date: Fri, 19 Feb 2010 22:10:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <hln27t$shc$1@fred.mathworks.com>
Reply-To: "Jetson Ronald" <ajetsonronald@yahoo.co.in>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1266617405 29228 172.30.248.38 (19 Feb 2010 22:10:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Feb 2010 22:10:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2125354
Xref: news.mathworks.com comp.soft-sys.matlab:609896

Hell
      I have set of input files in a folder. The name of the files in the folders are like
CHY023-N,
 CHY023-E,
CHY143-E, 
CHY143-N,
CHY153-E,
 CHY153-N,
TCU043-E, 
TCU043-N,
TCU063-E,
 TCU063-N ................
They are earthquake records in a staion in two dorection such as east and north. I want to rotale the records in other direction using the following formula
   R=E.*cos(q)+N.*sin(q);
    T=-E.*sin(q)+N.*cos(q);
I am able to access all the records using dir comment but my program should be able to read the pairs that is east and north directions records for a station together (CHY143-N,CHY153-E) then next pair. Whant i mean is it should read the records in a station simultaniously.

Regards
Jet