Path: news.mathworks.com!not-for-mail
From: "Matthew " <men5mjr@leeds.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: problems using textread
Date: Tue, 18 Nov 2008 20:48:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <gfv9m2$968$1@fred.mathworks.com>
Reply-To: "Matthew " <men5mjr@leeds.ac.uk>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227041282 9416 172.30.248.37 (18 Nov 2008 20:48:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Nov 2008 20:48:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1606798
Xref: news.mathworks.com comp.soft-sys.matlab:501563


i am trying to read in the 3rd value of the 1st numerical line 0.000 0.6149 0.00834 ........ of the file below using textread. however i am having a lot of problems and it just will not read the line i want. it is the first time i have used this type of text scanning read in method and it is starting to annoy me. i want to read the value in exactly as is shown in the file below then assign it to the variable Cd.


       XFOIL         Version 6.94
  
 Calculated polar for: test airfoil                                    
  
 1 1 Reynolds number fixed          Mach number fixed         
  
 xtrf =   0.500 (top)        0.500 (bottom)  
 Mach =   0.100     Re =     1.000 e 6     Ncrit =   9.000
  
  alpha     CL        CD       CDp       CM    Top_Xtr Bot_Xtr
 ------- -------- --------- --------- -------- ------- -------
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997
   0.000   0.6149   0.00834   0.00179  -0.1316  0.5000  0.1997



any help on this matter who be greatly appreciated as it does not seem to matter how i construct my code i just cannot get it to work :(