To talk on Icrontic, just register!

It only takes 30 seconds.

Have an account? Sign in:

Forgot?
ChiLeah
New to the neighborhood
ChiLeah
1 Posts

matlab help, fscanf

Hi,

I have a txt file with 225 rows and 5 columns, ex:

BCC BHE 7894740.000 2000/07/11 2005/08/02

I need to search the 4th column for a certain date and then read the corresponding columns. I'm not sure how to do this in matlab or if it can be done, but I'm first trying to read the txt file in using fscanf. This is what I have so far:

fid=fopen('response_LAstations.txt');
station_name=fscanf(fid,'%s',[1]);
channel=fscanf(fid,'%2s',[2]);
gain=fscanf(fid,'%10d',[3]);

How do I read the last two columns of dates?
Also, I was trying it for one row, how do I have it read the whole file?

Thanks for the help,
Leah
Similar Threads
Thread Thread Starter Forum Replies Last Post
Solving multiple equations using Matlab avi2112ben Matlab Help 3 22 Feb 2008 8:58pm
matlab help aleks_k Matlab Help 1 5 Oct 2006 4:25pm
MATLAB help= jpeg to avi dalisay Web & Digital Media 0 13 May 2006 5:03pm
Matlab help pete99 Web & Digital Media 0 28 Nov 2005 7:04am
Matlab help!!! pseudonym Web & Digital Media 11 11 Dec 2004 8:44pm

Go Back   Icrontic Forums > Tech: Software > General Software > Matlab Help
Jump to
This Thread Search this Thread
Search this Thread:

Advanced Search


Current time: 11:53am (GMT)
Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Get Vanilla instead. Trust me.