Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any idea to get values from this file type

Status
Not open for further replies.

kollurulp

Mechanical
Apr 2, 2004
12
Hi

If anyone know please help me out in solving this problem. I have a
file which is having around 140 columns in it. I need to read a few
columns from it and i must draw some graohs or do some operatioons on
the columns. The file format is not defined in Matlab. So i thought
of using sscanf('Line','%s %s %f %f ....'). But is it wise to specify
140 columns like this and get the data. I am a beginner in Matlab. So
i donno wether there are anyother methods to read such type of data.
So please help me out. I am giving a sample line of data. its only
one row in the file. I am also having headers for this line as column
names.

TRUE 1 FALSE 0 TRUE SPM-X AH32 -85.864900000E-03
-50.688010000E-03 -85.864918051E-03 -0.341235231E-03 TRUE
-85.864926765E-03 0.989400000E+00 2.220000000E+00 TRUE
-85.864909630E-03 0.999600000E+00 1.790000000E+00 TRUE
-85.864903042E-03 0.999900000E+00 3.830000000E+00 TRUE
-85.864921545E-03 0.998300000E+00 0.620000000E+00 TRUE
-85.864892657E-03 0.970200000E+00 0.180000000E+00 TRUE
-85.864915469E-03 0.999500000E+00 0.240000000E+00 TRUE
-85.864906279E-03 0.689400000E+00 0.030000000E+00 TRUE
-85.864905199E-03 0.997200000E+00 2.070000000E+00 TRUE
-85.864937587E-03 0.997500000E+00 1.270000000E+00 TRUE
-85.864480710E-03 0.257200000E+00 0.000000000E+00 TRUE
-85.864912938E-03 0.999600000E+00 1.470000000E+00 TRUE
-85.864932233E-03 0.999200000E+00 0.090000000E+00 TRUE
-85.864924973E-03 0.973500000E+00 0.020000000E+00 TRUE
-85.864921723E-03 0.999100000E+00 0.010000000E+00 TRUE
-85.864889405E-03 0.109900000E+00 0.000000000E+00 TRUE
-85.864968080E-03 0.999500000E+00 1.180000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00 FALSE
-0.341235231E-03 0.000000000E+00 0.000000000E+00

Thanks in adavance
Lakshmi Prasanna Kolluru
 
Replies continue below

Recommended for you

Maybe you try the import wizzard.
From file menu choose "import data..." and
then select the file and column separator (in your case space) and follow the further steps.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor